Hello, guys! Sorry my bad english
I use a small txt base in file, write there and read (strings), size its is changed constantly, as i can install locking for reading or for writing?
if i use
when i will read the file, as i will know what size of *buf i will take? Or there is more flexible ways?Code:fcntl.h ssize_t read(int fd, void *buf, size_t count); ssize_t write(int fd, const void *buf, size_t count);
Thanks...