Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 11:29:39 +0000



Post From: Open File

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