Re: [fpc-pascal] Reading non-printable caracters in file (linux)

2008-08-17 Thread Jonas Maebe
On 17 Aug 2008, at 00:54, TOUZEAU DAVID wrote: Did anybody has developped a function that read a file include non- printable caracters "^@" like a cat -v command line tool ? You can use the blockread function. Jonas ___ fpc-pascal maillist - f

[fpc-pascal] Reading non-printable caracters in file (linux)

2008-08-16 Thread TOUZEAU DAVID
Dear. I need to read /proc/pid/cmdline files But if i use a standard function that read file with assign,"readln",EOF some important non-printables caracters are not trapped with fpc readln : imapd-s-U30 if i use cat -v "cat -v /proc/26328/cmdline" [EMAIL PROTECTED]@[EMAIL PROTECTED