Re: Ascii File Handling

From: Sean butler (sbutler@DEVEAST.COM)
Date: 12/13/97


At 07:34 PM 12/12/97 -0600, Fili wrote:
>Quick question about handling ascii files:
>How can I open a file, count the number of line feeds, and store this
>number in an int variable for later use?

umm thats a bit too easy.  Try breaking open a copy of Kernighan and Ritchie
and turning to chapter 7.5 File Access ... keeping in mind that line feed
is ascii char 0x0A

--Sean


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST