The FreeDOS Project on Nostr: I sometimes write articles to help folks learn programming. And my sample programs in ...
I sometimes write articles to help folks learn programming. And my sample programs in those articles are as simple as possible, so you can see what's going on.
But performance matters too. Here are 3 ways to read text files in C, and how well they run.
https://www.both.org/?p=5327
TL/DR: fgetc+fputc is easy for beginners to understand, but super slow. fread+fwrite is way faster, even with a small buffer.
But performance matters too. Here are 3 ways to read text files in C, and how well they run.
https://www.both.org/?p=5327
TL/DR: fgetc+fputc is easy for beginners to understand, but super slow. fread+fwrite is way faster, even with a small buffer.