I wrote a program to write data in a text file to another text file .what i want to do is to open that modified second text file once I've entered data in to that
shanakaprabath 0 Newbie Poster
Recommended Answers
Jump to PostYou can use FileReader class under java.io package. Use read method to read the file.
to read a line at a time
public class FileLineReader extends FileReader { FileLineReader(File …
Jump to PostHere is another code snippet that might help:
BufferedReader reader = null; try { reader = new BufferedReader(new FileReader("fileName")); String line = reader.readLine(); while (line!=null) { // do whatever you want with line System.out.println(line); // this MUST be the last command: line = reader.readLine(); } } catch …
Jump to Postyes i wrote a program to handle files (filehandler)
and my data saved as plain text (in human readable format)
i dont want to show this data in terminal ..i want to open the file that content my data .It's a txt
All 12 Replies
sneaker 25 Junior Poster in Training Team Colleague

harsh2327
shanakaprabath 0 Newbie Poster
shanakaprabath 0 Newbie Poster
solahere 0 Newbie Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
sneaker 25 Junior Poster in Training Team Colleague
shanakaprabath 0 Newbie Poster
shanakaprabath 0 Newbie Poster

harsh2327
shanakaprabath 0 Newbie Poster
solahere 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.