Rose::StringUtility::readWordsInFile
Reads words from a file.
Synopsis
Declared in <src/Rose/StringUtility/FileUtility.h>
[[visibility]]
std::vector<std::string>
readWordsInFile(std::string filename);
Description
Opens the specified file for reading and reads all words from the file using std::istream operator>> into std::string. If the file cannot be opened then an std::runtime_error is thrown with a message that includes the file name.
Return Value
List of words.
Parameters
Name |
Description |
filename |
File to read. |
Created with MrDocs