M
mike
I'd like to code a function that performs read and write a file. The
file is for recording serial no, just a number inside. Each time when
the function is called, the file will be opened, locked, read,
increase the serial no, write, unlocked and closed, then return the
serial no in the end.
Is it possible to do the read and write operations in one file-open
with file lock? Thanks in advance
file is for recording serial no, just a number inside. Each time when
the function is called, the file will be opened, locked, read,
increase the serial no, write, unlocked and closed, then return the
serial no in the end.
Is it possible to do the read and write operations in one file-open
with file lock? Thanks in advance