in reply to Writing at specific position and length in binary file.
as no_slogan points out, use print.
write is used for printing formatted text.
The opposite of read() is print().
To further confuse things, the functions sysread() and syswrite() are indeed opposite. They are the low level (unbuffered) versions of read() and print().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Writing at specific position and length in binary file.
by thanos1983 (Parson) on Jan 12, 2014 at 04:48 UTC | |
by no_slogan (Deacon) on Jan 12, 2014 at 06:33 UTC | |
by wazat (Monk) on Jan 13, 2014 at 05:49 UTC |