On 4/3/06, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > I'd like to read raw sectors (blocks) from removable devices (such as > USB drives) from Linux and/or Windows. Is there any possibility to use > FPC with that?
On Linux you can read the device like a normal file. On Windows there is probably a API function to do this. Do some googling to find it. And then use {$ifdef Win32} and other conditional compiles to ensure it compiles across all platforms. There is some explanation on how to use the conditional compiles here: http://wiki.lazarus.freepascal.org/index.php/Hardware_Access -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal