Login Page - Create Account

Support Board


Date/Time: Wed, 04 Feb 2026 23:56:33 +0000



Post From: Open File

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