Re: Contest Update

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu