note
	description: "External iteration cursor for a file."

class interface
	FILE_ITERATION_CURSOR

create {FILE}
	make_empty,
	make_open_read,
	make_open_stdin

feature -- Access

	character: CHARACTER_8
			-- Item at current cursor position.
			-- See also byte.

	byte: NATURAL_8
			-- See also character.
	
feature -- Status report	

	after: BOOLEAN
			-- Are there no more items to iterate over?
	
feature -- Cursor movement

	forth
			-- Move to next position.
			-- Attempt to read a byte from the file and make it available in byte and character.
	
feature -- Disposal

	close
			-- Action to be executed just before garbage collection
			-- reclaims an object.
			-- Effect it in descendants to perform specific dispose
			-- actions. Those actions should only take care of freeing
			-- external resources; they should not perform remote calls
			-- on other objects since these may also be dead and reclaimed.
			-- Release resources associated with the file.
	
invariant
	consistent_item: byte.to_character_8 = character

note
	date: "$Date: 2018-11-03 08:58:17 +0000 (Sat, 03 Nov 2018) $"
	revision: "$Revision: 102395 $"
	author: "Alexander Kogtenkov"
	copyright: "Copyright (c) 1984-2018, Eiffel Software and others"
	license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
	source: "[
		Eiffel Software
		5949 Hollister Ave., Goleta, CA 93117 USA
		Telephone 805-685-1006, Fax 805-685-6869
		Website http://www.eiffel.com
		Customer support http://support.eiffel.com
	]"

end -- class FILE_ITERATION_CURSOR

Generated by ISE EiffelStudio