opening a RandomAccessRecordFile in modify mode!

General discussion on the JZOS batch launcher and toolkit
Post Reply
Ashirvad Babu
Posts: 11
Joined: Sat May 20, 2006 2:35 am
Location: Chennai, India
Contact:

opening a RandomAccessRecordFile in modify mode!

Post by Ashirvad Babu »

Hi,

I am using write() method of Class RandomAccessRecordFile. The problem is that, I am not able to overwrite a record in an already existing file. The available file modes are "r" and "rw" . I think opening the file in "Append" mode would solve my problem but then, these are the only two modes available(as far as I know).

Each time I open an already existing file, it wipes away all the records and shows me an empty file.. I dont know wat to do..

Please help..
Ashirvad Babu
Tata Consultancy Services Limited
Mailto: ashirvad.babu@tcs.com
Website: http://www.tcs.com
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

I'm sorry, but the RandomAccessRecordFile is part of the IBM "JRIO" package, and we don't explicitly support that on this forum... but perhaps another user on the forum will be able to help.
Post Reply