• Post Reply Bookmark Topic Watch Topic
  • New Topic

using a RandomAccessFile  RSS feed

 
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
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadocs of the RandomAccessFile constructors answer this question.
 
Acetylsalicylic acid is aspirin. This could be handy too:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!