![]() |
<< Index >> |
FutureBasic 5 |
Def Open( deprecated in 5.7.102 - recommend UTIs per Apple's direction | statement | |
|
Def Open [=] typeCreatorPascalString
Open
statement.Def Open
statement is executed.Def Open
statement with a non-NULL typeCreatorPascalString parameter, FutureBasic assigns a NULL( OSType equal to zero ) type and creator signature to files opened for output.
Specifying a zero length typeCreatorPascalString
( such as Def Open
"" ) also results in a NULL type and creator.
Def Open "ttrottxt"
Open "O", #1, "test file",@parentFolderRef // an FSRef cannot be created for a non-existent file, so a filename is supplied
Print #1, "This is a test file"
Close #1
Def Open
only applies to files which are opened with the "O" option. It does not change the type nor creator signature of files which are opened for input only ("I") or for random access ("R").