I am having problem with this project. can some one possibly show me i would be very grateful to you. i cant get it to read a whole line then output the whole line, and im not to sure how to break up a ling line into multiple lines. here is the project.
Design and implement a Visual C++ .NET program that numbers the lines of a text file and keeps some statistics about the text file. Your program should read lines of text from the file source.txt and output each line to the screen and to the file output.txt. Each line of output should be preceded by a line number. Print the line number at the beginning of the line, right justified in a field of three spaces. Follow the line number by a colon, then one space, then the line of text. You should remove any spaces at the beginning of a line (hint: read the input file one character at a time using <your_ifstream>.get(ch) and use<your_ifstream>.putback(ch)). Lines that are longer than 50 characters should be broken into multiple lines. Once you reach 50 characters in a line, insert a newline at the end of the current word (as soon as you read a space). This new line should not get a line number, but should be indented properly. Your program should also keep the following statistics about the text file: the number of lines, the number of words (assume words are separated by spaces and newlines, in other words, punctuation is part of the word), The length of the longest word and the length of the shortest word. These statistics should be output to the file stats.txt.