CFile:GetPath
The GetPath method returns as a string the full path name of the file attached to the CFile.
sPath = CFile:Path() sPath = CFile:Path( nMaxChars ) |
The first form returns the full path as a string.
The second form returns an abbreviated path of, at most, nMaxChars characters.
On failure, this method returns nil.
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' |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.