FfParseHelper
public class FfParseHelper
Method Summary | |
---|---|
array | delimitedSplit(char delim, string str, boolean trimValues) Splits a line of entries by the specified delimiter. |
void | parseDelimitedFile(string filename, char delim, boolean winCarriageReturn, boolean trimValues) Parses a delimited file. |
public array delimitedSplit(char delim, string str, boolean trimValues)
Splits a line of entries by the specified delimiter. After trial and error it was determined that a character by character processing routine like the following is more effective and contained less bugs then trying to achieve the same result using regular expressions.
public void parseDelimitedFile(string filename, char delim, boolean winCarriageReturn, boolean trimValues)
Parses a delimited file. If delim is null this method will use the file extension to automatically determine the delimiter. Delimiter defaults: .csv = comma, .txt = tab.
FfParseHelper is a helper class used to parse certain types of data.