Reads points from a file.

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


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


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


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