Procedure Append opens the specified file for writing and appends the data to the end of the file. Existing data in the file is NOT overwritten.
If the filename includes a fully qualified path, the path has to use the appropriate notation for the local operating system:
: Macintosh HD:Applications:VectorWorks:Plug-Ins:Data:Notes.txt
: C:\Program Files\VectorWorks\Plug-Ins\Data\Notes.txt
If the filename includes a path relative to the location of the VectorWorks executable, the subfolder delimiters have to be backslashes:
: Plug-Ins\Data\Notes.txt
If the filename does not include a path, the file is assumed to exist in the same folder as the VectorWorks executable.
PROCEDURE Append(fileName : STRING);def vs.Append(fileName):
return None| Name | Type | Description |
|---|---|---|
| fileName | STRING | Name of file to open for writing. |
UseDefaultFileErrorHandling(FALSE);
Append(filename);
IsWritable := (GetLastFileErr = 0);
Close(filename);
END;
BEGIN
KeyFilePathAndName := Concat(KeyTestFileFilePath, kKeyTestFileName);
Append(Concat(KeyFilePathAndName));
Writeln(Concat(' '));
Writeln(Concat(TestNumNum));
END
dateLine2 := Date(2,0);
nameLine3 := 'Fur Ball';
emailLine4 := '-';
codeLine5 := '-';
Append(TheRegFile);
WriteLn(regLine1);
WriteLn(dateLine2);
WriteLn(nameLine3);
WriteLn(emailLine4);import vs
# Procedure Append opens the specified file for writing and appends the data
# to the end of the file.
fileName = 'C:/Temp/example.txt'
vs.Append(fileName)Availability: from All Versions