Semi Mod Loader
Static Public Member Functions | List of all members
Semi.SimpleListFileParser Class Reference

Static Public Member Functions

static string[] Parse (StreamReader file, bool trim=true)
 Loads a file into a string array containing each line as an element, excluding comments (marked by starting the line with '#'). More...
 
static string[] ParseFile (string path, bool trim=true)
 

Member Function Documentation

◆ Parse()

static string [] Semi.SimpleListFileParser.Parse ( StreamReader  file,
bool  trim = true 
)
inlinestatic

Loads a file into a string array containing each line as an element, excluding comments (marked by starting the line with '#').

Returns
The array of lines.
Parameters
fileText file to load.
trimIf set to true, lines will be trimmed (whitespace removed from either ends).

◆ ParseFile()

static string [] Semi.SimpleListFileParser.ParseFile ( string  path,
bool  trim = true 
)
inlinestatic

The documentation for this class was generated from the following file: