Talk:Read a file character by character/UTF8: Difference between revisions

(Why?)
 
 
Line 8:
 
(I am inclined to implement this as an abstraction layer on top of "reading the entire file", but wanted to make sure I was clear on the purpose before attempting the implementation.)
 
:: The task description doesn't say anything about implementation details; I think the point is just to demonstrate an '''interface''' that allows programmers to repeatedly get the next character of a file, which can be useful for certain algorithms. Many programming languages have a built-in function for this (or at least easy access to a library / system call that provides it), so it's not an esoteric problem. What goes on behind the scenes to implement this interface probably doesn't matter much, although I suppose it should be a "reasonable" way to implement it (for practical purposes), and of course better performance is always better. At least that's my interpretation. --[[User:Smls|Smls]] ([[User talk:Smls|talk]]) 08:54, 25 June 2014 (UTC)
Anonymous user