ofstream myfile; myfile.open ("code.txt"); myfile << " Foldoutmenue Horizontal "; myfile.close();