Re: Contest Update
- Posted by Andy Serpa <ac at onehorseshy.com> Nov 07, 2004
- 509 views
Derek Parnell wrote: > > I'll give a hint that some people may have tripped up on. > > A file opened as "text" will appear to prematurely end if it contains > the End-Of-File marker for text files. > I suspected that might be the case. But penalizing the programmer for treating a file that is supposed to be text as text seems wrong. It the input file was not to be treated as text, then the rules should say that tokens contain the *bytes*: {65,66,67, etc.} instead of: "ABC ... etc." Making an assumption that one should continue after an EOF marker could be wrong if this was a "real-world" application. Sticking to this esoterica would seem to be making the contest about "who can best interpret logical loopholes in the rules" rather than best program a well-defined task. Alternatively, simply put in a rule that says, "Input files should be opened in binary mode". -- Andy