Write to a fiel and read the same fiel in real time.
-
HI , I wanna help on a simple application. I have 2 applications in c language. First application 'A' has some data being written in a text file 'T'. Second Application 'B' simultaneously is reading that data from the same file 'T'(if any) and producing the desired output. Can it b done n how. amit mishra
-
HI , I wanna help on a simple application. I have 2 applications in c language. First application 'A' has some data being written in a text file 'T'. Second Application 'B' simultaneously is reading that data from the same file 'T'(if any) and producing the desired output. Can it b done n how. amit mishra
set a flag in the registry (or in a temporary text file). this way, by testing the flag before writing or reading, you could know if you are allowed to (or not)...
prog1 :
if (**!**flag) {
int fd = fopen("T");
fprintf("some datas to write");
fclose(fd);
flag = true;
}prog2 :
if (flag) {
int fd = fopen("T");
char strTab[100];
fscanf("%s", strTab[0]);
fclose(fd);
flag = false;
}
TOXCCT >>> GEII power
[VisualCalc] -
HI , I wanna help on a simple application. I have 2 applications in c language. First application 'A' has some data being written in a text file 'T'. Second Application 'B' simultaneously is reading that data from the same file 'T'(if any) and producing the desired output. Can it b done n how. amit mishra
What you should do is lookup "Named Pipes". This is in essence exactly what you want to do. Do a search on SS_Log on Codeproject and you'll find the SS_Log_Server article that does exactly that.