# include & lt; Fstream>
# include & lt; iostream>
using namespace std;
Int main (int arg c, char * argv [])
{char c;
Fstream fio (argv [1], the ios: : | in ios: : out);
If (fio) fail ())//open the file monitor success
{cerr & lt; <"Always open a file:" & lt;
If (isupper (c))
{fio. Seekg (- 1, the ios: : cur); Fio. Put (tolower (c)); }
Fio. Close ();
return 0;
}