Creating new files in java 1.1
1 posts in topic
Flat View  Flat View

Posted By:   Crazy_Gal
Posted On:   Sunday, April 28, 2002 01:11 PM


I am working on java 1.1 and I cannot find a method to create a new file in this version.

I know that in java 1.2 , we can invoke the method createNewFile in the File class to create a file if the file does not exist.

Is there a way to do this in java1.1?



Re: Creating new files in java 1.1

Posted By:   Stephen_Ostermiller  
Posted On:   Monday, April 29, 2002 04:30 AM

Creating a output stream to the file and then flushing and closing it without writing anything has worked for me in the past.
About | Sitemap | Contact