This assignment will help you understand file I/O, binary vs text and windows from an application.

The assignment: Create an application that opens a user dialog in a window. The dialog should have a field for entry of an input file name and a field for an output file name. There should be buttons to read in from a file and to write to a file. There should be a radio button that determines binary vs text.

So for example, If you have a text file with the numbers 1 to 10 and you press the read button with text selected, it should read the data into an array. If you then press the write button and change the radio button to binary, it should write to the file name specified and output the array in binary. You should then be able to open the binary file and write it back out in text using your buttons and fields.

Assume the files will contain only integer values in either binary or text.