• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 987
  • Last Modified:

Handling large files in VB6

I want to edit a large binary file in VB6 . According to the help the maxium file size that I can seem to handle from 'Seek'  is 2,147,483,647 bytes
Is there anyway round this  ? Are these limitations still there in VB.NET ?
0
jhokexchange
Asked:
jhokexchange
  • 3
2 Solutions
 
mirzasCommented:
Why use seek? Read file block by block using CreateFile,ReadFile apis.
0
 
KavarCommented:
seek will take you to a position in a file, if I remember correctly you have the option to seek relative or absolute, if you always do relative, you can hope 2gb, then gb again and be in the 4gb page of the file
0
 
mirzasCommented:
SetFilePointer can handle the max possible range. (signed 64-bit distance)
0
 
mirzasCommented:
..depends on which OS you're targeting..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now