Get File Name

Blitz3D Forums/Blitz3D Beginners Area/Get File Name

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

So no - it aint there. Good idea tho.

It's considered good practice to write a file handling function rather than code each time for each and every operation. The function could also store filenames accessed in an string array (or simple string var using a seperator to delimit each item).

As jfk indicates - we have to know the name of a file whenever we open it so plopping it into a string variable or bank or whatever shouldn't pose a problem.

FileName$="File.txt"
file = WriteFile(FileName)