Support Board
Date/Time: Thu, 28 Mar 2024 16:10:10 +0000
How to retrieve error code for File Open Error in ACSIL
View Count: 548
[2018-10-08 11:53:28] |
User787032 - Posts: 37 |
In one of my studies, I get an occasional error when opening a file at the end. This is part of a routine that is executed at regular intervals to check for a change in the timestamp of the last record in the file, which is being delivered by an external file synchronization program. Once the check has been done, the file is closed. Most of the time, the file opens OK and I can read the last record without a problem, but at times, the open fails. mySourceFile.open(SFname, ios::in | ios::binary | ios::ate); // open source file at end if(mySourceFile.fail()) { sc.AddMessageToLog("Failed to open source file ",1); sc.AddMessageToLog(strerror(errno),1); return; } |
To post a message in this thread, you need to log in with your Sierra Chart account: