I have a file test.txt with unknown size. Shared file with other services and i have to read from this file to edit it. Just small edit changing timestamp to now. What is the best way to edit it without read the whole file and rewrite again. I don't feel that this a proper way to do it. I am aware of createReadStream and createWriteStream but i don't want copy the file and waste resources especially the memory. Thanks.
via Jimmy Janson
No comments:
Post a Comment