Reads points from a file.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public void ReadFromFile(
	string fileName,
	char separator
)
Visual Basic (Declaration)
Public Sub ReadFromFile ( _
	fileName As String, _
	separator As Char _
)
Visual C++
public:
void ReadFromFile(
	String^ fileName, 
	wchar_t separator
)

Parameters

fileName
Type: System..::.String
A valid file name.
separator
Type: System..::.Char
A character containing the separator of the coordinates.

Remarks

The file has to contain the points line-wise with exactly three coordinates separated by the separator character. For example, if separator = ';' and # denotes an arbitrary precision numeric value, then a line must have the following format:

#; #; #; an optional comment goes here...

Comment lines start with an upper case "C".

A very free format follows from the blank separator (' '). In this case, the coordinates follow from the first three numeric values in a line. For example, following input lines are feasible in the same file when using the blank separator (' '):

" # # #"

" # # # Point number 2"

" As long as no three numeric values are in this line, this is a comment line"

"C Comment lines starting with "C" may also contain three numeric values"

" X: # Y: # Z: # Another point"

See Also