![]() |
| | #1 |
| Registered User Join Date: Nov 2009
Posts: 1
| File I/O - Same file, multiple processes I am writing a C program that reads from a log file that another running application is writing to. Are there any sort of contention issues I need to worry about? Do I have to worry about stalling my program if the other application has not written the next event yet? The other application simply writes 1 line at a time, and prints "#eof\n" when it is completely finished and it shuts down. I want to read one line at a time in my application and end when the other application shuts down. Thanks for the advice! |
| msm is offline | |
| | #2 |
| +++ OK NO CARRIER Join Date: Oct 2001
Posts: 11,292
| It's really up to your OS if you can access the same file by multiple programs at the same time. Quzah.
__________________ Hundreds of thousands of dipshits can't be wrong. Are you up for the suck? |
| quzah is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Formatting a text file... | dagorsul | C Programming | 12 | 05-02-2008 03:53 AM |
| Need Help Fixing My C Program. Deals with File I/O | Matus | C Programming | 7 | 04-29-2008 07:51 PM |
| Dikumud | maxorator | C++ Programming | 1 | 10-01-2005 06:39 AM |
| Encryption program | zeiffelz | C Programming | 1 | 06-15-2005 03:39 AM |
| File I/O problems!!! Help!!! | Unregistered | C Programming | 4 | 05-17-2002 08:09 PM |