Hi,

I need assistance in writing a simple program. It's a simple program really. It reads the contents from one file and change all the letters to lowercase except the first letter in each sentence, which should be uppercase then send to the second file. I'm having difficulties using tolower/toupper. your assistance will be greatly appreciated..

this is what I have so far...

Code:
#include <iostream>
#include <string>
#include <cctype>
#include <cstdlib>
#include <fstream>
using namespace std;

int main()
{

fstream inputFile, outputFile;
string text;
char ch, ch2;
outputFile.open("output.txt");


inputFile.open("input.txt");
if (!inputFile)
{
    cout << "File open error!" << endl;
    return 0;
}
getline(inputFile,text);
while(inputFile)
{

    outputFile << text << endl;
    getline(inputFile,text);
}
inputFile.close();
outputFile.close();
return 0;

}
Thanks