My Project
|
Public Member Functions | |
ReadTextFile () | |
~ReadTextFile () | |
void | SetFileName (string TargetFileName) |
void | Dump () |
UInt4 | PutSize () |
string | Put (UInt4 IndexNumber) |
vector< string > | Put (UInt4 IndexNumber, string Delimiter) |
Constructor.
Destructor.
void ReadTextFile::Dump | ( | ) |
Dump the contents of target file to STD-out.
string ReadTextFile::Put | ( | UInt4 | IndexNumber | ) |
Returns IndexNumber-th value in string type format.
vector< string > ReadTextFile::Put | ( | UInt4 | IndexNumber, |
string | Delimiter | ||
) |
Returns a vector whose size is defined by the second argument. The IndexNumber-th line is devided by using the second argument as a delimiter.
UInt4 ReadTextFile::PutSize | ( | ) |
Returns the number of lines contained in the target file.
void ReadTextFile::SetFileName | ( | string | TargetFileName | ) |
Set the target file name in the string type. The file size of the target file is estimated in this method. The line number of the file can be obtained with "PutSize()".