August 16th, 2002, 01:57 AM
Reading from .txt file using JSP
I have some problems reading and writing to a UNIX .txt file.
This file contains data as below delimited by some character.
For example, the delimiter is ","
123,AIRCONDITIONER,456,UITG67,6868686UIK, Suitable for 2-Storey house
I need to extract the data and display them on a JSP page in a table format
according to the delimiter.
After which I need to write the data to another new .txt file.
Does anyone have any idea on how this can be done??
August 16th, 2002, 02:39 AM
Take a look at FileInputStream, FileOutputStream, and StringTokenizer.
August 17th, 2002, 12:42 AM
Good suggestions! Also take a look at Iterators