The best solution to this problem is to use unbuffered I / O ( '' read '' and '' write '' ) , which also means using '' lseek '' instead of '' fseek '' and '' ftell '' .
The best solution to this problem is to use unbuffered I / O ( '' read '' and '' write '' ) . 
 This also means using '' lseek '' instead of '' fseek '' and '' ftell '' .