FacesOfMu
Member
Hi all, I'm having what seems to be a pretty basic problem. I'm trying to open a text file for appending to, and despite file_exists reporting it has been created, I can't find it anywhere:
I'm on Windows 10. I've checked the C:\Users\TehManticore\AppData\Local\GameMakerStudio2\GMS2TEMP folders and C:\Users\TehManticore\Documents\GameMakerStudio2\ folders(edited)
I've even copy and pasted the example code at https://docs.yoyogames.com/source/d...le handling/files/file_text_write_string.html and still no text file
Output:
What's weird is that is says "file exists 0: 1" which is before I've even opened the file
GML:
global.logfile = working_directory + "log " + string(date_current_datetime()) + ".txt"
show_debug_message(global.logfile)
show_debug_message("File exists 0: " + string(file_exists(global.logfile)))
logf = file_text_open_append(global.logfile)
show_debug_message("File exists 1: " + string(file_exists(global.logfile)))
file_text_write_string(logf, "meta_debug Create")
show_debug_message("File exists 2: " + string(file_exists(global.logfile)))
file_text_close(logf)
show_debug_message("File exists 3: " + string(file_exists(global.logfile)))
show_debug_message("Filename path: " + string(filename_path(global.logfile)))
I've even copy and pasted the example code at https://docs.yoyogames.com/source/d...le handling/files/file_text_write_string.html and still no text file
Output:
Code:
Y:\Game1_6228D944_VM\log 44171.75.txt
File exists 0: 1
File exists 1: 1
File exists 2: 1
File exists 3: 1
Filename path: Y:\Game1_6228D944_VM\