in my app i work like this
i set at startup a temp directory
so now the app is : media\Temp
opentowrite and opentoread are from there.
now when i press the save button
i want to move the new created file
to media\Projects\**PROJECTNAME**-> lastfile created.
this is still in the spectrum of the app and not outside of it.
the temp file is called temp.fle
and when i save i want to rename it to projectname.fle inside the new project folder.
is this possible? or am i completly wrong? cause i think i can but i have no RenameFile(oldName,newName) or CopyFile(oldFile,newFile) when i can address a path if its relative or absoulut ...
so i wonder how can i do this ...
i am now trying with Zip files , where i can compress a file and assign a directory to it and then exctract it with its directory but still it will be in the temp folder which is what i dont want.
any idea?...
ive also thought about creating a function
function CopyFile(oldFile$,NewFile$)
repeat
writeLine(newFile$,readLine(oldFile$))
until FileEOF(oldFile$) =1
endfunction
but in this case i dont know if it will work flawlesly or will it add errors and mem leaks..
so im kinda lost in the mist here...
and also i dont understand why cant i use more folders inside the app WriteFolder... or can i ... i might missunderstood the help files..
:/ i am actually very very upset with TGC team about not having the fundamental CopyFile(old,new) and RenameFile(old,new)...