Close File question

Francis Nugent Dixon effendi at wanadoo.fr
Wed Oct 27 05:36:43 CDT 2010


Hi from Beautiful Brittany,

There seems to be some confusion about how to define
a full file name on your computer.

On the Mac, you don't specify the main disk drive,
it is implicit, so you start with the second level
(beginning with a "/")
On a PC you must start with the first level, i.e.
the disk drive (don't ask me why !).

so :

put "/RevFolder/PDF Files/" into LVFilePath
defines a file path.

put "File1.pdf" into LVFileName
defines a file name.

put LVFilePath & LVFileName into LVFullName
defines the full name ....... on a Mac,

and

put "C:" & LVFilePath & LVFileName into LVFullName
defines the full name ........  on a PC
(if, of course, your disk drive is "C:")

And, as specified by Mark, and others :

open file LVFullName
read file LVFullName into LVworkArea [until ...]
close file LVFullName

Best Regards

-Francis

"Nothing should ever be done for the first time !"





More information about the use-livecode mailing list