Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 00:47:59 +0000



Open File

View Count: 753

[2020-02-06 16:17:26]
Tony - Posts: 457
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
[2020-02-06 17:46:58]
Sierra Chart Engineering - Posts: 104368
You need to use sc.OpenFile:
sc.OpenFile()
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account