Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 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