home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,320 of 2,978   
   Jud McCranie to RadSurfer   
   Re: TP 7 philosophy   
   05 Feb 05 19:30:36   
   
   From: youknowwhat.mccranie@adelphia.net   
      
   On 5 Feb 2005 07:30:22 -0800, "RadSurfer"  wrote:   
      
      
   >Why is it not permitted to obtain the FileSize(text_file) ?   
      
   It handles text files differently from other files.  FileSize returns   
   the number of records.  What is the number of records in a text file?   
   (bytes? lines?)  You can open a text file as a file of char or a file   
   of byte and do FileSize on it and get the number of bytes.   
      
      
   >and why not a generic ReadCh(F, Ch) function that works with ANY type   
   >of   
   >file...   
      
   You can open a text file as a file of char and read a char.   
      
   >What does it mean I can not Seek(F) if it is a Text file?   
   >Why on Earth not?   
      
   Seek goes by the number of records.  (see above).  Again, you can open   
   a text file as a file of char.   
      
      
   >Why the distinction?   
      
   Probably because a text file doesn't have a fixed record size.   
      
   >ALL work regardless of the nature or type of file... as it should be...   
      
   That's your opinion.   
      
   >I found rediculous obstacles where very least expected!   
      
   The obstacles seem to be within you, and the way you think.  Pascal is   
   different from C, and it is better designed.   
      
   >So whats needed is some kind of reference that really tries to explain   
   >the approach being taken here.   
      
   Apparently that is something you need.   
      
   ---   
   Replace you know what by j to email   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca