files > 65535 bytes wont read in dos
Hello, I hope you can welcome one more newbie into the ranks!
For practice I've been trying to make a program (16bit dos) that reads each byte in a file. I've set up an array of 256 elements...array[256] and each time that byte comes up I add one to the corresponding element in the array. Like I said its just for practice.
My real problem comes when I try to read files that are larger than 65535 bytes. The program (stops reading???) or something once it gets past this point.
Is this a limitation of 16bit mode (would make sense) and was wondering if there is something I'm missing. Here's the functions I use.
FILE *filein
fopen("c:/something.txt","rt");
input=fgetc(filein);
fclose(filein);
Thats the file functions I use and the rest is just simple stuff.
Thanks for the help!