Loading ...
Sorry, an error occurred while loading the content.
 

Re: Reading text files

Expand Messages
  • Amit R
    Hi! ... the read ... this text ... you can open this file. then have a loop while (defined($line = )) thats it! cheers Amit
    Message 1 of 5 , Jun 22, 2000
      Hi!

      > I have a file like this:
      >
      > File=myzip.zip
      > Size=189289
      > Desc=This is a very important zip file
      >
      >
      > And I want to read it line by line, and I cannot do this with
      the "read"
      > function (at least directly). Is there any function or way to read
      this text
      > files line by line?

      you can open this file. then have a loop

      while (defined($line = <FILE_DESC>))

      thats it!

      cheers
      Amit
    Your message has been successfully submitted and would be delivered to recipients shortly.