2using System.Collections.Generic;
11 internal class ScannerPrototype :
Scanner {
13 #region Public Methods
15 public List<string> Scan(
string source)
21 List<string> lines =
new List<string>();
23 StreamReader streamReader =
new StreamReader(source);
25 while (!streamReader.EndOfStream)
26 lines.Add(streamReader.ReadLine());
33 catch (Exception exception)
35 throw new ScriptStackException(
"Beim einlesen der Datei '" + source +
"' ist ein Fehler aufgetreten.", exception);
An interface to modify the default process of reading text files into Script's.