From: marcov@stack.nl   
      
   On 2005-02-06, Bill Leary wrote:   
   >> > characters, your need is so tied up in them, that if you STILL need to   
   read   
   >> > lines as well, you're driven to write a customized line reader anyway.   
   >>   
   >> The features work fine with TP and friends. You just have to read the help   
   >> once in a while, and assume less about that all languages are like C and   
   >> then you'd have noticed that read() and readln() are magic.   
      
   (I was confused a bit, and thought your msg was by the OP who was trying   
   to use a "readch" in one msg, I tried to canceled the article after noticing)   
      
   > But I'm not sure what you mean by "magic." They seem perfectly logical to   
   > me, and now that you've caused me to re-read the entry and see that the   
   > characters come through anyway on character reads, they seem even more so.   
      
   I was hinting at the fact that read, write and their ln counterparters are   
   compiler magic. They don't exist as proper procedures, contrary to C.   
      
   >> > For myself, if I'm doing a lot of file mucking, I usually write a function   
   >> > ((..omitted..))   
   >> > like "FileOpen(Var F: File; W: Boolean; S: String): Boolean;"   
   >>   
   >> Better make the "w" parameter an enumeration that sets the sharing info too.   
   >   
   > I'm using Turbo 5.5. I don't recall running across any sharing controls in   
   > Assign, Reset or Rewrite this version.   
      
   Does 5.5 implement filemode ? TP/Delphi use a filemode global variable for   
   this.   
      
   > I just did a quick scan of my manual and   
   > didn't run across it. I thought that turned up in a later version. No?   
   >   
   > If I needed it, I'd be more likely to add another parameter than to mess   
   with my   
   > W(rite) flag. I'm used to it.   
      
   You would then create a matrix with possibilities that aren't allowed. Some   
   sharing opts are for writing, some of reading only. That's why I suggested   
   combining them.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|