Re: KI_FILE count precondition
Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Message-ID | <[email protected]> |
Bernd Schoeller wrote: > Perhaps the documentation string of 'read_string' could > be updated to say clearly that read_string might read less than specified. > Obviously, I has to read at least one character. Done, and committed in CVS. >>> It would be best if there was a 'read_string(-1)' that would just read >>> in >>> everything available. >> This -1 is very ugly. This might be common practice in >> other languages, but in Eiffel I would prefer to have a new >> feature `read_all' or `read_to_end' or something like that. >> Then I wonder whether this routine should write to `last_string' >> or to a string given as argument (like `read_to_string'). > > True, I think such a functionality would be very helpful, as many people > have probably the same problem and a common solution with a reasonable > buffer size would prevent common mistakes. This will be added only after the release. -- Eric Bezault mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected] http://www.gobosoft.com