CFile:GetPath
The GetPath method returns the full path of the file attached to the CFile.
sPath = CFile:Path() sPath = CFile:Path( nMaxChars ) where |
The first form with no arguments returns the full path.
nMaxChars sets the maximum number of characters to use in sPath. This causes the returned path name to be abbreviated using ... characters.
sPath is a string containing the path. On failure, nil is returned.
Suppose a CFile object F is attached to a file opened from the path sPath, which is 'C:\My Folder\My File.txt'. Then
|
-- Create a new CFile |
|
-- open the file as text, for read and write |
|
-- prints 'C:\My Folder\My File.txt' |
|
-- prints 'C:\...\My File.txt' |