![]() |
|
|
|
|
|||||||
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Eof
How can I write EOF into a file?
I tryed to do as follows: size=sizeof(EOF); end_of_file=EOF; write(fdMutexRichieste, &end_of_file, size); But it does non work correctly, becouse in the next cicle (using lseek(..., SEEK_END) of my code it seems to ignore my EOF and use the LAST (and ORIGINAL) EOF. |
| Forum Sponsor | ||
|
|
|
|||
|
If I have 2 EOF witten on a file than I close the file.
I re-open it, I seek for the END (SEEK_END), which one of the two EOF are used? Is it correct to insert an EOF to a file if I use the file as a PIPE? So I insert from SEEK_SET I "remove" from SEEK_END. Last edited by DNAx86; 05-10-2008 at 09:13 AM. |
|
|||
|
Quote:
I insert variables from the start of the. I remove the variables starting from EOF |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|