0% found this document useful (0 votes)
8 views3 pages

Exercise 7

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Exercise 7

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

EXERCISE-7

(1.) Write a Java program that reads a file name from the user, displays information about
whether the file exists, whether the file is readable, or writable, the type of file and the
length of the file in bytes.
(2.) Then remove the space between the words in file and write the output to another file.

Eg.) India is my country


Output should be Indiaismycountry

Note- Please submit the assignments in PDF format on LMS SNU. Include your name and
registration number in the top right corner of the page. Name the folder using the format: last
two digits of your registration number_your name. For example, if your registration number is
23011103022 and your name is Abhishek Kumar, your folder name would be
22_Abhishek_Kumar. Your assignment should include the question, algorithm, program, and
output. Ensure your code is well-commented and follows proper naming conventions. Include
a brief report explaining the functionality of your code and any challenges faced.
Hint

You might also like