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

Re: [libertybasic] Re: (unknown)

Expand Messages
  • laurie camion
    Whoa! That s VERY fast :)  I didn t know input$ could work that way. Thanks! ... From: John Subject: [libertybasic] Re:
    Message 1 of 4 , Jun 16, 2010
    • 0 Attachment
      Whoa! That's VERY fast :)  I didn't know input$ could work that way. Thanks!


      --- On Wed, 6/16/10, John <john_siejkowski@...> wrote:


      From: John <john_siejkowski@...>
      Subject: [libertybasic] Re: (unknown)
      To: libertybasic@yahoogroups.com
      Date: Wednesday, June 16, 2010, 3:00 PM


       



      open "filename.txt" for input as #a
      text$ = input$(#a, lof(#a))
      close #a
      print text$

      This will put the entire contents of the file into text$

      John "Psycho" Siejkowski

      --- In libertybasic@yahoogroups.com, laurie camion <lauriecam2006@...> wrote:
      >
      > Thanks. It's true, I will have to parse it into an array eventually, and then transpose it into another array, and I'm not scared of that code, so please tell me how to do the single variable load so I can try it.
      >
      > --- On Wed, 6/16/10, rod_bird001 <rodbird@...> wrote:
      >
      >
      > From: rod_bird001 <rodbird@...>
      > Subject: [libertybasic] (unknown)
      > To: libertybasic@yahoogroups.com
      > Date: Wednesday, June 16, 2010, 2:07 PM
      >
      >
      >  
      >
      >
      >
      > Stick with simple. Filling your array is useful. You can load a single variable with the contents of the file more quickly but then you have to parse it, probably into an array! It only becomes an issue with vastly greater data volumes.
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      > [Non-text portions of this message have been removed]
      >











      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.