- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to write to a file with one program and read that same file instantaneously with another program?
Suppose I wanted to simulate data being written from a control system computer and the second program would read that data reduce itas soon as it is written.
If this can't be done with fortran are there any alternatives?
Thanks for any comments
Suppose I wanted to simulate data being written from a control system computer and the second program would read that data reduce itas soon as it is written.
If this can't be done with fortran are there any alternatives?
Thanks for any comments
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It can be done, though a file isn't the best way of doing that, as there can be synchronization problems and the need to periodically "flush" the output.
Windows has a number of mechanisms for sending and receiving data between programs - a pipe would probably be the most appropriate for you. You can read about these in the "Platform SDK" part of the Visual Fortran (or MSDN) documentation.
Steve
Windows has a number of mechanisms for sending and receiving data between programs - a pipe would probably be the most appropriate for you. You can read about these in the "Platform SDK" part of the Visual Fortran (or MSDN) documentation.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The classic starter is this MSDN article. It's in C, of course, but I did recommend it few times here so someone should have a Fortran translation. Anyone?
Jugoslav
Jugoslav

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page