Create a standalone java file that reads from a text file

Standalone java

Required

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

error: