i don't get it how do you create a text file? i've read some tutorials but still can't understand.. some1 help me?

BufferedWriter writer = new BufferedWriter(new FileWriter("filename.txt"));
writer.write("This is a line");
writer.newLine();


writer.close();

Also: BufferedWriter
FileWriter

and to read, you might take a look at the BufferedReader and FileReader api's

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.