University of Calgary

file formatter

File Formatter

 source: Tino Duong, 2003

Description:

You have just written a user manual using xemacs file editor. After reading it over, you noticed that the file is in desperate need of formatting. Your job is to write a file formatter that takes text in a text document and formats it nicely into a new document where the lines are the same size. The program must read a file and output a new file under the name format.txt.

Requirements:

        The usage should like similar to this format
                ./a.out <input file>

                -Where a.out is the executable
                -<input file> is the name of the file   

Additional Requirements:

Concepts:



Updated: August 29, 2005 12:10 AM