Method Read
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Read(string)
Reads a file. A file of UTF-8 or UTF-16 with a byte order mark is read as that, any other as UTF-8, the system's code page where it is not.
public static CadSheet Read(string path)
Parameters
pathstringThe file.
Returns
- CadSheet
The sheet, named for the file without its extension.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- IOException
Thrown when the file cannot be read.