Method Read
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Read(string)
Reads a .pat file: UTF-8 where its bytes are, else each byte its own character.
public static IReadOnlyList<CadHatchPattern> Read(string path)
Parameters
pathstringThe path.
Returns
- IReadOnlyList<CadHatchPattern>
The patterns.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- IOException
Thrown when the file cannot be read.