I know how to open a file for read and write, but I'm not sure how you actually do both to the file? In my script I basically print to a file then read what I wrote later (because I want to avoid a giant memory buffer). How to do this without having to close the close the file descriptor then reopen for read? Thanks
In reply to Both read and write to file by stevensw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |