Y_Ini only 1 line gets saved
#1

FIXED.
Reply
#2

Код:
	format(time, sizeof(time), "[%02d/%02d/%d] %02d:%02d:%02d\n", Day, Month, Year, Hour, Minute, Second);
Reply
#3

Quote:
Originally Posted by gurmani11
Посмотреть сообщение
Код:
	format(time, sizeof(time), "[%02d/%02d/%d] %02d:%02d:%02d\n", Day, Month, Year, Hour, Minute, Second);
That does nothing I'm afraid. Adding a \n doesen't help. I'm pretty sure the time and the message can be on 1 line.
Reply
#4

Seeing as there is no append function, you first have to load the data and store it in a variable. Then you would have to concatenate the new log entry with the stored variable and then you can save that variable.
Reply
#5

There might be 1000+ lines in the log one time.. so I need to store that in a variable? Maybe there's still away just to add 1 line.
Reply
#6

that code working fine for me . No issue
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)