Write text to a file #include #include const char *FILENAME = "myfile.txt"; int main() { //create output object associated w/ file ofstream fout(FILENAME); cout << "Enter your text: "; char str[100]; cin >> str; //write the text to the file fout << "here is your text\n"; fout <