Need to random access a record and update it with new
string without affecting rest of the file.
num = randTest.getFilePointer();
temp = randTest.readLine();
while(temp != null){
if (temp.startsWith("222")){
randTest.seek(num);
randTest.writeChars("222 ffff\n");
}
num = randTest.getFilePointer();
temp = randTest.readLine();
}
file is:
111 aaaa
222 bbbb
333 cccc
messes up the last line!!