Login Page - Create Account

Support Board


Date/Time: Sat, 20 Dec 2025 21:15:35 +0000



Post From: Open File

[2020-02-06 16:17:26]
Tony - Posts: 662
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