C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-21-2009, 01:56 AM   #1
msm
Registered User
 
Join Date: Nov 2009
Posts: 1
File I/O - Same file, multiple processes

Hi,

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   Reply With Quote
Old 11-21-2009, 04:31 AM   #2
+++ OK NO CARRIER
 
quzah's Avatar
 
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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 12:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22