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 / OpenToRead & OpenToWrite. What am I doing wrong?

Author
Message
JLM
8
Years of Service
User Offline
Joined: 21st Jul 2015
Location:
Posted: 15th Aug 2015 22:16
The below code works fine if the file exists and has content. If the file does not exist or has no content, it goes through the steps (executes StartTextInput, etc) but actually writes nothing, and if the file does not exist, it does not write/create it.

I know it has to be something simple that I'm missing...

I've already confirmed the location where it looks for/creates files. When I create a dummy text file with content, it works.

The folder it is supposed to read/write to is not "Read Only", and UAC is off.



Any help appreciated

-Writing programs for years, new to AGK2
Markus
Valued Member
19
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 16th Aug 2015 00:41 Edited at: 16th Aug 2015 00:43
starttextinput not interrupt your game.
means the next condition is not =1

example from me


AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
JLM
8
Years of Service
User Offline
Joined: 21st Jul 2015
Location:
Posted: 16th Aug 2015 05:02
Thanks, your example helped me get it writing the file

-Writing programs for years, new to AGK2

Login to post a reply

Server time is: 2024-03-28 11:30:59
Your offset time is: 2024-03-28 11:30:59