Create a standalone java file that reads the following from  a text file named CompanyData.txt

The txt file pattern should be as follows:

First Name |Last Name | Age |Company Name

JANE  |DOE | 27 |WORK

JOHN |DOE | 27 |WORK

Ensure, try catch is used appropriately and exception is handled.

The data read from the text file should be printed on console using system.out.println in the following pattern.

First Name |Last Name | Age |Company Name

JANE  |DOE | 27 |WORK

JOHN |DOE | 27 |WORK

 

 

 

    • 10 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    • companydatareadwrite.zip