You'd need to open the file in read-write mode ("+>") and also reset the file pointer to the beginning of the file between every write and read cycle (or seek to where it was before the write) — otherwise, you'd try to read from the position where the write has left the file pointer...
Anyhow, maybe you rather want a pipe?
In reply to Re: testing interface
by almut
in thread testing interface
by asr00
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |