Support Board
Date/Time: Thu, 23 Jan 2025 21:32:58 +0000
Post From: Is it possible to use sc.WriteFile() to write in text mode?
[2018-12-10 14:03:02] |
Sierra Chart Engineering - Posts: 104368 |
We have no idea what you are doing wrong or where you get that data from. Here is an example: if (sc.Index == sc.ArraySize - 1)
{ int FileHandle; sc.OpenFile("Testing.txt", n_ACSIL::FILE_MODE_OPEN_TO_APPEND, FileHandle); unsigned int BytesWritten; sc.WriteFile(FileHandle, "Test Line\r\n", 11, &BytesWritten); sc.CloseFile(FileHandle); } This will write "Test Line" to the file. There simply is no problem with this whatsoever. This is point blank simple. And it does not matter that we also added the \r\n characters. 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 Date Time Of Last Edit: 2018-12-10 14:03:48
|