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

RE: [PBML] Reading text files

Expand Messages
  • Carlos S├ínchez
    ... Thanks, I found other way to do it after sending this message, including the file in an array: open FILE, myfile.txt ; @lines = close FILE
    Message 1 of 2 , Jun 2, 2000
      > In perl, you read by assigning output from a file pointer to a
      > variable. To read one line at a time assign to a scalar. To
      > read the entire file at once, assign to an array.
      >

      Thanks, I found other way to do it after sending this message, including the
      file in an array:

      open FILE, "myfile.txt" ;
      @lines = <FILE>
      close FILE
    Your message has been successfully submitted and would be delivered to recipients shortly.