Is Openfile bugged? I need to open a file which has 7 strings in it. I need to ignore the first two strings, and replace the remaining five. My plan was to use openfile, use readline to read off the first two strings and put the pointer to the correct position, and then use writeline to replace the remaining 5. But the writeline command just seems to do nothing.
The only other way around it I can see it to open the file with readfile, read and store the 2 strings, close the file, open it again with writefile and then put all 7 strings back in and close it again. Seems like a very long-winded way around it.
Am I doing something wrong, or is openfile just bugged?
The only other way around it I can see it to open the file with readfile, read and store the 2 strings, close the file, open it again with writefile and then put all 7 strings back in and close it again. Seems like a very long-winded way around it.
Am I doing something wrong, or is openfile just bugged?