Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 1.54 KB

File metadata and controls

65 lines (50 loc) · 1.54 KB

Close

Description

Procedure Close closes the specified text file.

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 Close(fileName : STRING);
def vs.Close(fileName):
    return None

Parameters

Name Type Description
fileName STRING Name of file to close.

Examples

FileIO

		sizeNotFound := FALSE;
	END ELSE
		ReadLn (size1);
END;
Close (datafile);

	ValidBearingStrTest('10 30 0');
	ValidBearingStrTest('10.30.0');
	ValidBearingStrTest('10.30.30');
	WriteLn(90 - 10 - (30 / 60) - (30 / 3600));
	Close('Property Line Test.txt');
END;

BEGIN
	ReadLn( screwSize, gBoltDia, tpi, gHeadDia, gHeadHeight, gSquareWidth, gSquareHeight, gCornerRadius, gFilletR );
	sizeFound := (  screwSize = nominalSize );
END;
Close( fileName );
import vs

# Procedure Close closes the specified text file.
fileName = 'C:/Temp/example.txt'

vs.Close(fileName)

Version

Availability: from All Versions

Category