File Reader that can read line by line contents
Hi there!
I would like to ask how to read the content of a file line by line... I need to convert all the contents of a text file into html file.
Example:
3890001604AM0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
3890003011NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
3890003012NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
3890003014NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
I need to insert
tag after the last character of every line or enclose each line with <LI></LI> tag.
Result
3890001604AM0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
3890003011NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
3890003012NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
3890003014NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
OR
<LI>3890001604AM0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.</LI>
<LI>3890003011NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.</LI>
<LI>3890003012NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.</LI>
<LI>3890003014NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.</LI>
How can I do this in java? I am currently using the FileReader class but It seemed that it reads character by character and I am having a hard time in inserting the
tag or enclosing each line with <LI> and </LI> tags.
Anyone who got some ideas in dealing with this problem?
Thank you and God bless.

