Can we test if a file is opened?

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1289
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 222 times

Can we test if a file is opened?

Postby arjfca » 17 Oct 2017

Hello

I could read / write / delete a file but can know if a file is already opened?
I could validate a fiole path etc.

I did look in the ElCollection, but I don't any reference "Is Open"


Martin

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2944 times

Re: Can we test if a file is opened?

Postby Henry MultiСharts » 19 Oct 2017

Hello Martin,

File operations can be done using an external Dll. There is no prebuilt command in MultiCharts to do that.
You need to search for solution online, depending on the programming language your Dll is written in.
Here's a C++ discussion:
https://stackoverflow.com/questions/625 ... h-ifstream
Main idea - if the file is open by someone who writes there, the other app will not be able to open the file and do anything with it.


Return to “MultiCharts”