devxlogo

Read and Write Arrays Quickly

Read and Write Arrays Quickly

You can read and write arrays quickly from files using Put and Get. This approach is faster than reading and writing the array one entry at a time:

 Dim arr(1 To 100000) As LongDim fnum As Integer	fnum = FreeFile	Open "C:Tempxxx.dat" For Binary As fnum	Put #fnum, , arr	Close fnum
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist