Skip to content

Commit

Permalink
improved helpfile reading 😄
Browse files Browse the repository at this point in the history
  • Loading branch information
adiultra committed May 28, 2016
1 parent f61ad84 commit 3b54e60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified data.tdx
Binary file not shown.
6 changes: 5 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,14 @@ int parse(char command[80]){

else if (!(strcmp(command, "help") * strcmp(command, "-h"))) {
// View help
char line[80];
ifstream helpfile("help.txt");

while (!helpfile.eof()) {
cout << helpfile.readline();
helpfile.getline(line, sizeof(line));
cout << line << endl;
}

success = 1;
}

Expand Down

0 comments on commit 3b54e60

Please sign in to comment.