class EL_ARRAY_WRITER
Array writer
note
description: "Array writer"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2022-11-15 19:56:04 GMT (Tuesday 15th November 2022)"
revision: "5"
deferred class
EL_ARRAY_WRITER [G -> NUMERIC]
feature -- Basic operations
save_array_double (values: ARRAY [G]; file_path: STRING)
--
local
i: INTEGER
file: RAW_FILE
do
create file.make_open_write (file_path)
put_array_bounds (file, values.lower |..| values.upper)
from i := values.lower until i > values.upper loop
put_item (file, values.item (i))
i := i + 1
end
file.close
end
feature {NONE} -- Implementation
put_array_bounds (file: RAW_FILE; interval: INTEGER_INTERVAL)
--
deferred
end
put_item (file: RAW_FILE; item: G)
--
deferred
end
end