Description

Create a file "output.txt" containing the contents of "input.txt".

Source

Problem description from Rosetta Code: File IO

Solution

class APPLICATION create make feature {NONE} -- Initialization make -- Run application. do create input_file.make_open_read ("input.txt") create output_file.make_open_write ("output.txt") from input_file.read_character until input_file.exhausted loop output_file.put (input_file.last_character) input_file.read_character end input_file.close output_file.close end feature -- Access input_file: PLAIN_TEXT_FILE output_file: PLAIN_TEXT_FILE end

b26aa8e3-5963-94ae-b523-642c8b79637b
cached: 03/30/2017 5:31:08.000 PM