This shows you the differences between two versions of the page.
os_cp:prog_filebasics_signals [2024/05/08 13:00] jkonczak utworzono |
os_cp:prog_filebasics_signals [2024/05/08 14:26] (current) jkonczak [Reading & writing data] |
||
---|---|---|---|
Line 183: | Line 183: | ||
~~Exercise.#~~ Read standard input until the end of file, and write the read data | ~~Exercise.#~~ Read standard input until the end of file, and write the read data | ||
to standard output. When you reach end of file, use ''lseek'' to set position | to standard output. When you reach end of file, use ''lseek'' to set position | ||
- | in the file to its beginning (that is, 0 bytes from ''SEEK_SET''). Test this | + | in the file to its beginning (that is, 0 bytes from ''SEEK_SET'') and repeat |
- | by redirecting some file as standard input. | + | reading&writing. Test this by redirecting some file as standard input. |
<small> | <small> |