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?
Yes fread does use an internal buffer for caching file reads. I'm not sure exactly what size the CW10 buffer is but it will be a minimum of 512 bytes and probably 2K or 4K. This buffer is filled on the
The undo support, implementing a stack.
Continuing from the eigth article about sudoku.
We need a mechanism to keep track of the digits entered so as to implement an undo mechanism. This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name.
In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email
Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…