Is it still possible to store files externally?
#1
Posted 15 April 2012 - 03:06 AM
#2
Posted 15 April 2012 - 03:07 AM
You can save/load from text files, on any device.
You can save/load from ini files, on any device.
Hope that clears up whatever you're needing.
#3
Posted 15 April 2012 - 06:13 AM
#4
Posted 15 April 2012 - 10:49 PM
#5
Posted 16 April 2012 - 02:48 AM
Not entirely sure what your question is..but to help you out.
You can save/load from text files, on any device.
You can save/load from ini files, on any device.
Hope that clears up whatever you're needing.
Really? I've had no success writing files to my iPhone 4. It reads them just fine but cannot create files. I haven't tried modifying existing files though. No issues on Windows or Android writing files, thankfully.
#6
Posted 16 April 2012 - 02:50 AM
#7
Posted 16 April 2012 - 03:07 AM
I just did a simple test:
fileID = file_text_open_write("test.txt");
file_text_write_string(fileID, "testing");
file_text_close(fileID);It returns the file is not opened for writing error.
I also tried adding working_directory and program_directory to the path and it makes no difference.
#8
Posted 16 April 2012 - 03:58 AM
compiling is sytem file.then it can not read .the file is extent 'testing.txt'
#9
Posted 16 April 2012 - 04:52 AM
your code:file_text_write_string(fileID, "testing"); <<<<wrong
compiling is sytem file.then it can not read .the file is extent 'testing.txt'
Anyways, I feel like I may have gotten off-topic. Didn't mean to hijack your thread swang99!
EDIT: You know what, ignore my posts. Apparently it works just fine now >_< Must have gotten fixed in one of the updates without me noticing.
Edited by brighteyes, 16 April 2012 - 06:16 AM.
#10
Posted 15 June 2012 - 03:42 PM
your code:file_text_write_string(fileID, "testing"); <<<<wrong
compiling is sytem file.then it can not read .the file is extent 'testing.txt'Sorry man, I'm just having a hard time understanding your English. My point was just that the code above works fine on Windows and Android (Viewsonic G-Tablet running 2.2), but returns the "file is not opened for reading" at run-time (no compile errors) on iOS.
Anyways, I feel like I may have gotten off-topic. Didn't mean to hijack your thread swang99!
EDIT: You know what, ignore my posts. Apparently it works just fine now >_< Must have gotten fixed in one of the updates without me noticing.
I can not write anything in the archives GM Studio
mayarq = file_text_open_append("dados.txt");
file_text_write_string(mayarq,"Teste");
file_text_writeln(mayarq);
file_text_close(mayarq);
#11
Posted 04 July 2012 - 03:52 AM
This worked in HTML5, but doesn't seem to work now:
f=file_text_open_read('four.txt')
while( !file_text_eof(f) ){
s = file_text_read_string(f)
file_text_readln(f);
ds_map_add(global.dictionary,s,0);
}
file_text_close(f);
#12
Posted 09 November 2012 - 12:06 AM
//Writing to Achievement File
file = file_text_open_write("\data\achievement.dat");
file_text_write_string(file, achievement);
file_text_write_string(file, achievement);
file_text_close(file);
When I run this, the program said file not opened for writing or something like that.
//Writing to Achievement File
file = file_text_open_append("\data\achievement.dat");
file_text_write_string(file, achievement);
file_text_write_string(file, achievement);
file_text_close(file);
When I run this, GM Game just crash...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











