Link to home
Start Free TrialLog in
Avatar of tlyons
tlyons

asked on

fread vs. FSRead

Using CW 10 on a 604 based Mac-clone I have a C program that reads a binary file a few bytes at a time. The SIOUX implemented fread() function is almost 10 times faster than the Mac Toolbox function FSRead() at reading the whole file. I would have thought that fread() just calls FSRead() but apparently that's not the case. Is the problem just buffering? Does fread() have built in buffering that FSRead() lacks?
ASKER CERTIFIED SOLUTION
Avatar of looker
looker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial