Board index » delphi » Sharing files C++ & pascal
Nick McEvoy
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Sharing files C++ & pascal
have the following problem:
1. I'm writing a C++ dos application that interfaces with a Pascal dos application via a text file, 2. The C++ app opens the file for writing only (appending) - see code below, 3. The pascal app opens the file for reading only - see code below, 4. The pascal app seems to lock the file from the C++ app (ie. the pascal app opens the file exclusively - no sharing) . (note: the two apps are running on different PC's) How do I overcome the pascal problem (or is it me C++) ? Thanx, void main() in_line[0]='a'; out_file = fopen("g:\\common\\spc.txt", "a"); if (out_file) Quote} program PCPC; var assign (f, filename); while {(not eof(f))} (s[1]<>'Q') do |