How to create the text .txt or .xml with java

Hi,i want to create the plain text file or xml using java program. how can do this using the java.io.* package. please help me how to do this. i have small idea that we can do this using IO package but i dont understand hoe to do.regardsram
[268 byte] By [ram@123a] at [2007-11-26 19:16:56]
# 1
http://java.sun.com/docs/books/tutorial/essential/io/
BIJ001a at 2007-7-9 21:30:37 > top of Java-index,Java Essentials,Java Programming...
# 2
Look at the API for RandomAccessFile, it should fullfill your needs.
bytetrona at 2007-7-9 21:30:37 > top of Java-index,Java Essentials,Java Programming...