you could use this command
https://www.appgamekit.com/documentation/Reference/File/SetRawWritePath.htm
you could also add "raw:" where in the below function file$ may be "Raw:c:\myiolder\myfile.txt"
function saveTofile(file$ as string, myInt as integer)
fileID = openToWrite(file$, 0)
if fileIsOpen(FileID) = 1
writeInteger(fileID, myInt)
closeFile(fileID)
endIf
endFunction
those will work fine for window systems but for cross platform compatability use the folder commands
https://www.appgamekit.com/documentation/Reference/File.htm