
So the above invocation would read “data” and produce “data.out”. You are to open this file and use the data that is in this file, but create a new output file with the input name and “.out”. The second command line argument is the name of the file with the input text. Let’s stipulate that the number is = 25 and <= 100. You can assume that this is a “reasonable” number and that we will not need to worry about a wild value such as 10. The first command line argument (60) indicates that all of the output text can be no more than 60 characters long per line (including the spaces, not including new line). The program based on arguments passed on the command line. Note that there is NO space after the last word on each line. The idea is that we keep each line under a certain number of characters, and move words as necessary to ensure that this requirement is met. Notice that the output does not have to be “justified” on the right. In popular usage, especially since the Missouri Compromise of 1820 (apparently the first official use of the term “Mason’s and Dixon’s Line”), the Mason–Dixon Line symbolizes a cultural boundary between the Northeastern United States and the Southern United States (Dixie). states, forming part of the borders of Pennsylvania, Maryland, Delaware, and West Virginia (then part of Virginia). It forms a demarcation line among four U.S. The Mason–Dixon Line (or Mason and Dixon’s Line) was surveyed between 17 by Charles Mason and Jeremiah Dixon in the resolution of a border dispute between British colonies in Colonial America. The output from the above file might look like this: The job of part one of the word processor is to read text from a file, reformat the text to make it look nice, and place the new text in another file. The Northeastern United States and the Southern United The Mason–Dixon Line symbolizes a cultural boundary between Since the Missouri Compromise of 1820 (apparently theįirst official use of the term “Mason’s and Dixon’s Line”), Pennsylvania, Maryland, Delaware, and West Virginia
/google-docs-sample-a8ef87755ecb48f8b3464c79bfc9febb.png)
Of a border dispute between British colonies inĪ demarcation line among four U.S. The Mason–Dixon Line (or Mason and Dixon’s Line) There are two parts to the assignment: part one, and (wait for it…) part B!

For this assignment we will implement a rather simple word processor program.
