fileslurp

Generic Loader for delimited text files.

slurpy is the main function to be used.

Members

Functions

parse_delimited_string
void parse_delimited_string(string input, char delimiter, DATA arg)

Parses string input, delimited by character delimiter, into a tuple of variables $(arg).

slurpy
void slurpy(string filename)

Loads a delimited text file, line-by-line, parses the line into fields, and calls a delegate/function for each line.

slurpy_array
Select!(Types.length == 1, Types[0][], Tuple!(Types)[]) slurpy_array(string filename)

Loads a delimited text file, line-by-line, parses the line into fields, returns an array of fields.

testFilename
string testFilename(string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

byLineFast
struct byLineFast

Reads by line in an efficient way (10 times faster than File.byLine from std.stdio). This is accomplished by reading entire buffers (fgetc() is not used), and allocating as little as possible.

Meta

License

BSD 3-Clause