hi moombaz ,
we can write a text into a simple text file using java by the help of java.io.* package and its methods.
we use write() method of BufferedWriter class to get the file written.
here is a small example to make things clear..hope this will give you idea.
import java.io.*;
public class WriteTextFileExample{
public static void main(String[] args)throws IOException{
Writer output = null;
String text = "Rajesh Kumar";
File file = new File("write.txt");
output = new BufferedWriter(new FileWriter(file));
output.write(text);
output.close();
System.out.println("Your file has been written");
}
}