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.

AppGameKit Classic Chat / New Line when writing out to a text file

Author
Message
Funnell7
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 23rd Apr 2013 14:16
I'm trying to write out to a text file and want to create a new line. I found this thread, but its too old to reply. I think I must have tried every combination of Chr(10) and/or Chr(13) with both WriteString and WriteLine, but it doesn't seem to work for me...

http://forum.thegamecreators.com/?m=forum_view&t=199017&b=41

I can get a new line, but for some reason this causes a 'Space' to be added after each character.

Here's my temp code:



Where am I going wrong?
Marl
12
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 23rd Apr 2013 15:00
Build the string in memory and write in one operation Using writeline( string$ ) command.
Funnell7
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 23rd Apr 2013 16:30 Edited at: 23rd Apr 2013 17:09
Good shout, thanks Marl, I'll just do that...

Out of interest though, is the above normal?

EDIT: Thanks Marl, works perfectly!

Login to post a reply

Server time is: 2024-05-03 17:23:49
Your offset time is: 2024-05-03 17:23:49