From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fd705,4fa3cf2c993211a2 X-Google-Thread: 108717,4fa3cf2c993211a2 X-Google-Thread: 1164f8,4fa3cf2c993211a2 X-Google-Thread: 1094ba,4fa3cf2c993211a2 X-Google-Thread: 10adee,4fa3cf2c993211a2 X-Google-Attributes: gidfd705,gid108717,gid1164f8,gid1094ba,gid10adee,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: bill@cs.uofs.edu (Bill Gunshannon) Newsgroups: alt.folklore.computers,comp.programming,comp.sys.dec,comp.lang.fortran,soc.culture.nordic Subject: Re: The Helsinki Code Date: 14 Dec 2005 22:04:06 GMT Organization: Computing Sciences Dept., University of Scranton Sender: bill@triangle.cs.uofs.edu Message-ID: <40bj6mF19t6s1U1@individual.net> References: <1134358062.550739.108660@f14g2000cwb.googlegroups.com> <1134362645.916762.143340@g43g2000cwa.googlegroups.com> <1372.207T2978T8186159@kltpzyxm.invalid> <1406.208T760T4834077@kltpzyxm.invalid> <439FA2AC.4060601@prodigy.net> <439fb4d7$1@clear.net.nz> <439FBD6A.7020507@prodigy.net> <1h7jyel.296gmf1qy6dl3N%nospam@see.signature> Reply-To: bill@cs.uofs.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net NiPADM9lEqsxafX5IUWo/g/ekM3IMn+zbIprAiIM32dW8UmNip X-Newsreader: knews 1.0b.1 Xref: g2news1.google.com alt.folklore.computers:20746 comp.programming:13343 comp.sys.dec:1464 comp.lang.fortran:11658 soc.culture.nordic:8556 In article , Willem writes: > Richard wrote: > ) My speculation (also just speculation, but I personally think mine more > ) plausible - discount as you like) is that either someone originally > ) thought it pointless to make a file with no content, or perhaps even > ) that the behavior was just an acccident. > > If I had to speculate on a real cause, I would say that the programmers > used a zero length to mark some other condition. An error condition, > maybe. Or the end of a linked list, or whatever. Microsoft coders tend > to be bad hacks like that. Or, the code went like this: Open Original File Loop: Do initial Read -- on EOF exit program (letting the system take care of closing all open files.) Open New File Write Record Goto Loop This is the kind of (bad) code I expect considering the source. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves bill@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include