AGG Software Forums
November 22, 2024, 12:05:35 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: Could not write to file  (Read 15901 times)
ccdr
Jr. Member
**

Karma: +0/-0
Posts: 71


View Profile
« 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.
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 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.
Logged
ccdr
Jr. Member
**

Karma: +0/-0
Posts: 71


View Profile
« Reply #2 on: July 16, 2018, 05:03:56 AM »

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.
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.
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?
« Last Edit: July 16, 2018, 08:19:43 AM by ccdr » Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #3 on: July 16, 2018, 07:15:27 AM »

I'm sorry, but I cannot help in this case. We cannot change the mode.
Logged
ccdr
Jr. Member
**

Karma: +0/-0
Posts: 71


View Profile
« Reply #4 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?
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #5 on: July 16, 2018, 09:01:25 AM »

No, this is not possible too.
Logged
ccdr
Jr. Member
**

Karma: +0/-0
Posts: 71


View Profile
« Reply #6 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines