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.

Newcomers AppGameKit Corner / Problem with opentowrite

Author
Message
Humildadever
14
Years of Service
User Offline
Joined: 17th Aug 2010
Location:
Posted: 7th Jun 2017 23:18
for example in this:

OpenToWrite ( 1, "myfile.txt", 0 )
WriteInteger ( 1, 10 )
WriteFloat ( 1, 1.23 )
WriteString ( 1, "hello" )
CloseFile ( 1 )

Nothing is write in the file? i need this function for write and read tiles
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 8th Jun 2017 09:17
How do you try to open the file afterwards? I know that Tier 1 will by default write to a specific write folder in, on windows it is: C:\Users\<your windows user>\AppData (which is by default a hidden folder)\AGKApps\<Your app's name>\
13/0
Humildadever
14
Years of Service
User Offline
Joined: 17th Aug 2010
Location:
Posted: 8th Jun 2017 13:41
I think and try open in media folder...
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 8th Jun 2017 14:32
It will not write in the media folder that is in the folder where you run your app from. Which system do you use? Windows, Linux or Mac?
13/0
Humildadever
14
Years of Service
User Offline
Joined: 17th Aug 2010
Location:
Posted: 8th Jun 2017 16:37
Windows
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 8th Jun 2017 16:54
Look in C:\Users\[user]\AppData\Local\AGKApps\[YourApp]

this is the default write folder
Humildadever
14
Years of Service
User Offline
Joined: 17th Aug 2010
Location:
Posted: 8th Jun 2017 17:21 Edited at: 8th Jun 2017 17:22
omg i can t see
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 8th Jun 2017 18:07
Can you find the file but not see anything human readable, or can't you find the file at all?
13/0
Humildadever
14
Years of Service
User Offline
Joined: 17th Aug 2010
Location:
Posted: 8th Jun 2017 19:18
I don t find the file! I put in search but i can t find
Humildadever
14
Years of Service
User Offline
Joined: 17th Aug 2010
Location:
Posted: 9th Jun 2017 10:54
Today i find! thanks all
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 9th Jun 2017 21:21
Awesome And do pay notice to the fact that you wont find anything human readable in the file unless you use WriteLine (although I just wrote something human readable with WriteString). So WriteFloat, WriteByte and WriteInteger will not give you something you can read (as a human).
13/0

Login to post a reply

Server time is: 2024-11-22 07:25:09
Your offset time is: 2024-11-22 07:25:09