Announcement

Collapse
No announcement yet.

Load File

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cliff Nichols
    replied
    Maybe not a limitation of a string (or maybe a limitation).
    Any file on a NON-NTFS format from my learning must be less than 2gig. (No I have no document as to why, but transferring a 12 gig file to a Win32 format USB drive, and the comment of Win32 only knows up to 2gig I would think my text vs any binary comment would hold true)

    Leave a comment:


  • Trevor Lane
    replied
    Check the limitations of your operating system for haw large a string can be (2 gig is the norm i think?). If your file is bigger than that; think again.

    Also consider how much memory is in the average users system. (Specific to your users). If you keep hitting the paging file your performance will drop and you may benefit from doing things another way.

    Leave a comment:


  • Paul Dixon
    replied
    Martin,
    something like this:
    Code:
    FileHandle&=FREEFILE
    OPEN "MyFile.txt" FOR BINARY AS fileHandle&
    GET$ FileHandle&,LOF(FileHandle&),MyString$
    CLOSE fileHandle&  
    
    'MyString$ now contains the file.
    Paul.

    Leave a comment:


  • Martin Dorfinger
    started a topic Load File

    Load File

    How can I load a whole .txt file into one string?
Working...
X