Given the following text file named Residence.txt in Figure 1 that contains the data about the owner of the apartment. The data is comprised of owner’s IC number, name, unit, level and block of apartment.
Write a complete Java program using the file I/O operation that can perform the following tasks:
Read all records from text file named Residence.txt in Figure 1
Store all data into an output file named block1to5.txt. The file should contain only residents that live in from block 1 till block 5.
Close all file streams in used.
Apply exception handling mechanism in the program
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here