added textfile.cpp