Idunno wrote: ↑Tue Jun 23, 2020 6:48 pm
Silverware wrote: ↑Tue Jun 23, 2020 5:25 pm
Your tool is lower level, that's all.
'Twas a joke, playing off of the fact that assembly is the lowest I've been, with nothing in between that and C++.
Ah.
Open a file with W, or RW, or A flags to write.
Move the cursor to wherever you want to write to (this is why A is great, it STARTS at the end)
Then write data.
Then either repeat, or close the file descriptor.
[solid snake]A Flag?[/solid snake]
A Flag is an option. In this case, 'Write' 'ReadWrite' or 'Append' modes on the file open call.
You also wanna confirm Actual bytes written to intended bytes written per step.
I understood half of this.
After writing, the process should output the number of bytes written to file.
Or get the new position of the cursor/seek header, and compare to the previous position for written bytes.
Which you then should check against what you WANTED to write, to confirm you actually wrote what you wanted to write.
<Cuisinart8> apparently without the demon driving him around Silver has the intelligence of a botched lobotomy patient ~ Mar 04 2020
console.log(`What's all ${this} ${Date.now()}`);