Stuff
public text v1 · immutable#include "fileio.h"
#include <fstream>
#include <iomanip>
int getfLevel()
{
ifstream inLevel;
ofstream outLevel;
inLevel.open("charL.dlt");
outLevel.open("charL.dlt");
int theSavedLevel;
inLevel >> theSavedLevel;
inLevel.close();
outLevel.close();
return theSavedLevel;
}
void setfLevel(int charsCurLevel)
{
ifstream inLevel;
ofstream outLevel;
inLevel.open("charL.dlt");
outLevel.open("charL.dlt");
outLevel >> charsCurLevel;
inLevel.close();
outLevel.close();
}