Use SeparatedValueReader, add all fields

This commit is contained in:
Matt Nadareski
2020-06-14 22:50:58 -07:00
parent e551bc0c53
commit 34980e92ad
2 changed files with 679 additions and 161 deletions

View File

@@ -45,6 +45,11 @@ namespace SabreTools.Library.Readers
/// </summary>
public List<string> Line { get; private set; } = null;
/// <summary>
/// Get the current line number
/// </summary>
public long LineNumber { get; private set; } = -1;
/// <summary>
/// Assume that values are wrapped in quotes
/// </summary>
@@ -99,6 +104,7 @@ namespace SabreTools.Library.Readers
return false;
string fullLine = sr.ReadLine();
LineNumber++;
// If we have quotes, we need to split specially
if (Quotes)