Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using a RandomAccessFile  RSS feed

 
Komal Amaresh
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,

Does a RandomAccessFile() class create a new file if the file mentioned does not exist

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
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadocs of the RandomAccessFile constructors answer this question.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!