Login Page - Create Account

Support Board


Date/Time: Tue, 16 Sep 2025 07:00:51 +0000



Post From: Open File

[2020-02-06 16:17:26]
Tony - Posts: 627
Hi,

I am trying to open a text file:

int TextFileHandle = 1;
OpenFile("C:\\SierraChart\\Text\\t.txt", FILE_MODE_OPEN_EXISTING_FOR_SEQUENTIAL_READING, &TextFileHandle);

Build Output (remote build) says:
error: 'FILE_MODE_OPEN_EXISTING_FOR_SEQUENTIAL_READING' was not declared.

Not sure what I did wrong,

Thanks