Homework, Asst. #12 Purpose: Become familiar with the Program Segment Prefix (PSP), MS-DOS services for file input/output, and I/O buffering concepts. Due: Wednesday (4/2) Points: 160 Assignment: Write a program that will open a standard text file, add basic HTML formatting commands, and write the results to another file. The program must read the input file name and output file name from the command line. The program must accept one or more spaces between the parameters. For example (assuming the executable is named "[url removed, login to view]") to read an text file named "[url removed, login to view]" and create an HTML formatted file named "[url removed, login to view]", the command line would be: c:\> ast12 [url removed, login to view] [url removed, login to view] This would open and read the text file "[url removed, login to view]", add basic HTML formatting commands, and write the resulting text to a file named "[url removed, login to view]". Some example executions, with some sample input and output files, will be posted on the discussion board. For simplicity, you may assume that the text input files are no more than 255 characters per line. A series of test files will be provided. To ensure overall efficiency, the program must perform buffered I/O with a buffer size of 4096. You will be provided a main routine which should not be changed in any way. There must be two source files (the provided main and the user-written procedures). The provided main includes the appropriate HTML formatting commands (header/footer) and editing for special characters. The program is expected to perform basic error checking and issue appropriate error messages. For example, if the command line arguments are not correct or are incomplete, an appropriate error message should be generated (detailing which parameter is wrong/incomplete). Also, if the input file does not exist or if the input/output file names are not valid/legal, an appropriate error message should be generated. After an error message is
1)I am enclosing a previous assignment to give the code an idea of what is required. 2)All I need is a working code that follows the above instructions and complies with them 3)If you need a self-extracting masm debuger email me. 4)This project has to be done by Tuesday April-1, 2003 afternoon.