Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
7 registered members (clonman, TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible), 18,869 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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