Hi,
I use a file as a FIFO, to refresh the FIFO, I delete the file, and create it without the first line. (to make it work as a FIFO),
I have seen your example, it seems ok, but if I have 3 lines at the begining and delete one, then , the last line stays present in the file.
do you know how to empty a file? o force to delete the file (I already tried the -force option).
perhaps, there is a pb of multi accesing to this file, as many proceses are launched in the same time.
One thing sure,is that it work on unix, and crash on windows. the message is "best guess at reason: permission denied"
any idea?
|