Re: How to wait for file closing?
- Posted by SnakeCharmer Dec 10, 2012
- 1761 views
Excuse for my meticulousness, but this problem is too important for me. Let's say two programs (C++ and Euphoria) work in parallel. C++ writes the lines "Hot Fudge Sundae" and "Muffin". Execution of instruction "read_lines" was at this moment. What will occur?
1. read_lines immediately return {"Hot Fudge Sundae", "Muffin"}
2. read_lines will wait for closing of the file and will return {"Hot Fudge Sundae", "Muffin", "Hash Browns With Maple Syrup"}
Thanks for your endurance.