Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, howardR, 1 invisible), 777 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Writing data to log file #487129
01/25/23 11:28
01/25/23 11:28
Joined: Apr 2019
Posts: 53
Canada
A
aelagha Offline OP
Junior Member
aelagha  Offline OP
Junior Member
A

Joined: Apr 2019
Posts: 53
Canada
Hi there,

When I use printf("#..." or print(TO_LOG, ...) to write additional information to the "strategyname"_test.log file on the same lien as line #, date, time, close, I get an additional empty newline, see below. Is there a way to prevent adding the empty new line? I tried using different escape chars to get rid of it but no luck. thanks.

------------
[54078: Tue 23-01-24 19:21] (4018.75) O:4018.75 H:4019.00 L:4018.50 C:4018.75

[54079: Tue 23-01-24 19:22] (4018.75) O:4018.75 H:4018.75 L:4018.25 C:4018.75
-----------

Re: Writing data to log file [Re: aelagha] #487130
01/25/23 11:41
01/25/23 11:41
Joined: Apr 2019
Posts: 53
Canada
A
aelagha Offline OP
Junior Member
aelagha  Offline OP
Junior Member
A

Joined: Apr 2019
Posts: 53
Canada
NEvermind. Using TO_FILE instead of TO_LOG works and does not print the emplty new line.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1