Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Data File in VB

This topic is 6316 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In VB, strings are limited to 64k. Is there a way to increase this (Like in Qbasic u could ad the /AH extenstion at the command line)? But actually, this still wont help much. What I need to do is load a file into a string or string-like structure. The only way I know to do this is like this (and it is SLOW) Dim Chunk as String Dim Inp Integer Open "Blahblah.DAT" for binary as #1 Size=LOF(1) For A=1 to Size Get #1,A,Inp Chunk=Chunk + CHR$(Inp) Next A : Close #1 But isnt there a way to (something like) Dim Chunk as DataFile Chunk = LoadFile ("BlahBlah.DAT") And if I can, can I retrieve a part of this data file into a string like X=Mid$(Chunk,1,512)? Thanks...

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!