Method Read
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Read(string, int)
Reads the newest entries, the newest first: those of the file, then, where it holds fewer than asked for, those of the
file of the same name with .old before its extension.
public static IReadOnlyList<CadCrashLogEntry> Read(string path, int count)
Parameters
pathstringThe crash log; a file that is not there gives no entries.
countintThe most entries to give; above nought.
Returns
- IReadOnlyList<CadCrashLogEntry>
The entries, newest first.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- ArgumentOutOfRangeException
Thrown when the count is not above nought.