Results 1 to 2 of 2

Thread: Creating an array from a Text File.

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    Texas
    Posts
    1

    Cool Creating an array from a Text File.

    I am opening the text file as binary, and then using the Get #1, , Array_Name() to populte the array.

    Unfortunately for me it is writing all the paragraphs, approximately 110 of them, to the first array cell. What do I need to do, to get each paragraph in its own cell?
    Et Tu Brute?

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,526
    To do this in Binary file mode, you will need to read in the data to a temporary variable, then look for the paragraph delimiters (either Chr$(13) or Chr$(10) or both), then split the text on those characters.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width