Title: Could not write to file Post by: ccdr on July 13, 2018, 11:55:01 AM Hello
I export the parser result to a local file and use an other program to read the local file so that it could show the streaming data updated by data logger suite. But when I was doing so, the export file stopped updating and prompted an error 'Could not write to file.(Cannot open file...The process cannot access the file because it is being used by another process.)' Any method could work this around? Thanks for any hint. Title: Re: Could not write to file Post by: Arthur Grasin on July 13, 2018, 05:53:33 PM Hello,
Another program must allow to write to a file. Our software cannot solve this problem. Workaround: You may rename the file and feed the renamed file to another program. Title: Re: Could not write to file Post by: ccdr on July 16, 2018, 05:03:56 AM Hello, I can use Notepad to open this plain .txt file and edit it and save it while the other program is keeping reading on it. However I'm not allowed to delete this file that would trigger "the file is open" prohibit.Another program must allow to write to a file. Our software cannot solve this problem. Workaround: You may rename the file and feed the renamed file to another program. So presumably the other program does allow to write to this file as long as you don't delete it. In fact the other program features to plot live streaming data shared through .txt file. Is it possible that Data logger suite is set too strict on file sharing check? Or can I export the parsed result to .txt file through Notepad? Title: Re: Could not write to file Post by: Arthur Grasin on July 16, 2018, 07:15:27 AM I'm sorry, but I cannot help in this case. We cannot change the mode.
Title: Re: Could not write to file Post by: ccdr on July 16, 2018, 08:20:15 AM I'm sorry, but I cannot help in this case. We cannot change the mode. Or can I export the parsed result to .txt file through Notepad?Title: Re: Could not write to file Post by: Arthur Grasin on July 16, 2018, 09:01:25 AM No, this is not possible too.
Title: Re: Could not write to file Post by: ccdr on July 16, 2018, 10:53:19 AM Finally, I managed to work this around by using PowerShell script
get-content c:\some_path\xxx.txt -wait -tail 10 | out-file c:\some_path\yyy.txt -encoding utf8 Hope this may help others. Cheers. |