title: how do i parse each field seperated by delimiter " | " from a text file .The text file has to be read line by line
body: <p>Suppose a text file contains 3 fields and the last field is a comma separated multi parameter field . How do i parse each field separated by delimiter " | " from a text file .The text file has to be read line by line. suppose there are 20 lines in the file.Each field has to be parsed recognizing which the whole line displaying all 3 fields has to be printed. I need the java code for this .If possible it should even display the no of parameters in the 3rd field which are separated by commas.</p>