hey sean,
thanks a lot man..it worked and solved my purpose..
regards
karan
public static void main(
String[] args ) {
try {
FileWriter fw = new FileWriter( "text.txt", false );
fw.write( "Hello world" );
fw.flush();
}
catch( IOException e ) {}
}
}
[/CODE]
You'll see how this does just that if you create a large file called text.txt and then run this. The remaining file will only include the "Hello World".
If you just want to have some temp file type of behavior, then explore the java.io.File class, particularly the createTempFile() and the deleteOnExit() methods. I hope this helps.
Sean[/B]