I used these lines of code for getting data from text field and storing into a textfile.
But this overwrites into same place, all i want to do is storing more than one data in a same file.
Also I could not retrieve data from a text file using
BufferedReader method.
//try
{
BufferedWriter fileOut = new BufferedWriter(new FileWriter("filename.txt")); //Create the Buffered Writer object to write to a file called filename.txt
fileOut.write(myTextField.getText());
// Write to the file, using the text from our textfield
fileOut.close(); // Close the output stream after all output is done.
}
catch (IOException ioe)
{
ioe.printStackTrace();
//}
Greetings.
Albert