• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX:writing to the db.db file

 
Murali Kurukunda
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jacques and others,
Thanks for the previous replies..Now I have an understanding of reading from the RandomAccessFiles. I am looking at writing to it now. I have the record elements in the form of a String array. First I am trying to convert each element to byte array using getBytes("US-ASCII") method and then writing that array to the file using
raf.write(byte []) method.
For some reason I am not getting the expected result. DO you think it is correct way to do or please correct me if I am wrong. I appreciate your help.
Thanks,
Murali
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Java Tatpat"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Murali,
Please don't crosspost. I have put some suggestions in your other post on this subject.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic