A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
using a RandomAccessFile
Komal Amaresh
Ranch Hand
Joined: Oct 06, 2008
Posts: 67
posted
Feb 18, 2009 23:58:39
0
Dear Sir,
Does a
RandomAccessFile
() class create a new file if the file mentioned does not exist
[b] RandomAccessFile raf = new RandomAccessFile("d:/ka3/File1.txt", rw);[/b]
Does the above code create the 'File1.txt' in the ka3 folder if i call the above code in a method throwing
IOException
, if the file does not exist.
Thanks in advance,
with regards,
Komal
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35236
7
posted
Feb 19, 2009 00:26:02
0
The javadocs of the
RandomAccessFile
constructors answer this question.
Android apps
–
ImageJ plugins
–
Java web charts
I agree. Here's the link:
http://aspose.com/file-tools
subject: using a RandomAccessFile
Similar Threads
File I/O
java.io.package
File Exists
renameTo method in io package...
Problem when executing runnable jar file.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter