But how?
Capture File IO
- Redirect IO calls to your own IO layer
- "Capture" all operations to single file on first start up
- "Playback" from that file on subsequent runs
- Capturing C library IO may be sufficient
(fopen, fclose, fread, fwrite, ftell, fseek, fgets)
- Use the pre processor
- 3rd party code
- Use IO hooks where provided
Insist that they are provided where they are not
- If you have the source, use pre processor
- Alternative: Replace IO functions at the link phase
|