diff options
Diffstat (limited to '102persist.cc')
-rw-r--r-- | 102persist.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/102persist.cc b/102persist.cc index abefeda6..642385df 100644 --- a/102persist.cc +++ b/102persist.cc @@ -98,6 +98,7 @@ case SAVE: { filename = read_mu_text(ingredients.at(0).at(0)); } ofstream fout(("lesson/"+filename).c_str()); + if (!fout) break; string contents = read_mu_text(ingredients.at(1).at(0)); fout << contents; fout.close(); |