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 PostI 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
Have you written any filehandler?
Is your data saved as plain text (filename .txt) or …
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 Post
new ProcessBuilder("notepad","a.txt").start();
where a.txt is the filename..and you can change notepad to any other program...like notepad++, wordpad depending on the editor u preferhope that helps
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.