|Liberty BASIC Help Online
A string variable that contains the default directory for the running Liberty BASIC program. The format is "drive:\dir1", or "drive:\dir1\dir2" etc. There is no backslash appended to the DefaultDir$ variable.
As used with a FILES statement:
files DefaultDir$, "*.txt", info$(
As used to access a text file in the same directory as the program. Notice that the backslash must be added to the beginning of the filename:
open DefaultDir$ + "\readme.txt" for append as #f
print #f, "Sample"
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/