Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Write string not works

Author
Message
eayonov
10
Years of Service
User Offline
Joined: 7th Jul 2014
Location: Russia, Perm
Posted: 13th Aug 2014 08:39
Hi,
I have the "LogSave" procedure for saving logs into the "Log.txt" file. I did open the file and write string. But my file is empty.
Please help and tell me where is my mistake.
Files "code_0001.dba" & "code_0002.dba" in one Project.

file "code_0001.dba"



file "code_0002.dba"


file "system.pref" (in the root directory of project)


Thanks

sig
JackDawson
13
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 14th Aug 2014 00:33
Hadn't tried your code yet, but it looks ok so far. By chance.... is that folder you write your log file into write protected in any way ? Try this... Run DB Pro in Admin mode... right click the DBP icon and choose Run as Administrator. See if that fixes it.
eayonov
10
Years of Service
User Offline
Joined: 7th Jul 2014
Location: Russia, Perm
Posted: 14th Aug 2014 10:41
Thanks JackDawson, I forgot that the file name of file number was changed.
Solved.

sig

Login to post a reply

Server time is: 2025-05-15 08:16:11
Your offset time is: 2025-05-15 08:16:11