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,363 of 2,978    |
|    Dr Engelbert Buxbaum to Bill Leary    |
|    Re: Real Help Now, seriously    |
|    10 Feb 05 09:34:26    |
      From: engelbert_buxbaum@hotmail.com              Bill Leary wrote:                     > That's not what he's trying to get around. Using the C standard library, I       can       > "fopen" then do fgets or (if the particular library has it) "fgetline" to       read a       > line then follow it up with a "fgetc" to read a few characters then       "fgetline"       > again and so on. That is, I *can* read lines and characters interchangably       and       > the library keeps track of it all.              But what would be the difficulty doing this in Pascal: you Read(f, c)       some caracters, then do a ReadLn(f, s) (f being of type file, c of type       char and s of type string). I have done that sort of thing several times       in cases where the begining of a line contained info to be parsed, and       the reminder was either dumped or just copied without further action. Of       course ReadLn makes sense only for textfiles, but that is a logical       limitation, not one of the programming language.              --- 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