109 TextFile versionFile(
"$ISISROOT/isis_version.txt");
110 QString line1, line2, line3, line4;
111 versionFile.GetLine(line1);
112 versionFile.GetLine(line2);
113 versionFile.GetLine(line3);
114 versionFile.GetLine(line4);
116 QRegExp validPartOfLine(
"[^ #]*");
117 if (validPartOfLine.indexIn(line1) != -1) {
118 line1 = validPartOfLine.cap();
121 IString msg =
"$ISISROOT/isis_version.txt line 1, no valid text found";
125 if (validPartOfLine.indexIn(line2) != -1) {
126 line2 = validPartOfLine.cap();
129 IString msg =
"$ISISROOT/isis_version.txt line 2, no valid text found";
133 if (validPartOfLine.indexIn(line4) != -1) {
134 line4 = validPartOfLine.cap();
137 IString msg =
"$ISISROOT/isis_version.txt line 4, no valid text found";
141 return line1 +
" " + line4 +
" | " + line2;
Provides access to sequential ASCII stream I/O.