Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using a RandomAccessFile

 
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
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadocs of the RandomAccessFile constructors answer this question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic