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 / writeString problems

Author
Message
mYsT!C
19
Years of Service
User Offline
Joined: 7th Feb 2005
Location: Germany
Posted: 24th Mar 2013 17:20
Hey there!
I tried out the following code, but the generated textfile does only contain a bunch of hieroglyphs.
Does anyone know how I get my strings readable into a txt-file?

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 24th Mar 2013 17:54
WriteString is for writing to a binary file (it puts a null value after the string).

If you want a human readable file, use WriteLine. That is intended for text files.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
mYsT!C
19
Years of Service
User Offline
Joined: 7th Feb 2005
Location: Germany
Posted: 24th Mar 2013 18:05
Wow, I didn't even know that command.
But this is exactly what I wanted (human readable)!
Thank you!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 24th Mar 2013 18:40
Always glad to help.

Happy Programming!

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2024-11-24 09:37:55
Your offset time is: 2024-11-24 09:37:55