mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 15:22:31 +01:00
Author:halw
Date:2011-01-21T03:07:51.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@742 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
[[Property:title|File IO]]
|
[[Property:title|Example: File IO]]
|
||||||
[[Property:link_title|Example: File IO]]
|
|
||||||
[[Property:weight|0]]
|
[[Property:weight|0]]
|
||||||
[[Property:uuid|c6dda104-bd09-a00d-58b5-0d536e95d0c1]]
|
[[Property:uuid|b26aa8e3-5963-94ae-b523-642c8b79637b]]
|
||||||
==Description==
|
==Description==
|
||||||
|
|
||||||
Create a file "output.txt" containing the contents of "input.txt".
|
Create a file "output.txt" containing the contents of "input.txt".
|
||||||
@@ -27,6 +26,7 @@ feature {NONE} -- Initialization
|
|||||||
do
|
do
|
||||||
create input_file.make_open_read ("input.txt")
|
create input_file.make_open_read ("input.txt")
|
||||||
create output_file.make_open_write ("output.txt")
|
create output_file.make_open_write ("output.txt")
|
||||||
|
|
||||||
from
|
from
|
||||||
|
|
||||||
until
|
until
|
||||||
@@ -36,6 +36,9 @@ feature {NONE} -- Initialization
|
|||||||
output_file.put_string (input_file.last_string)
|
output_file.put_string (input_file.last_string)
|
||||||
output_file.new_line
|
output_file.new_line
|
||||||
end
|
end
|
||||||
|
|
||||||
|
input_file.close
|
||||||
|
output_file.close
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|||||||
Reference in New Issue
Block a user