(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-14-24 01:01 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Increasing a file's size in Vb6 New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 04-13-06 07:25 PM Link | Quote
So anyone know how to increase a file size? It's for my ROM editor so would any one mind helping?
D 2007
D


 





Since: 02-19-06

Last post: 6342 days
Last view: 6342 days
Posted on 04-13-06 07:41 PM Link | Quote
Writing past the end-of-file works.

At least in QBASIC. Not sure about later, but I'd imagine it was the same.
dcahrakos

490


 





Since: 11-17-05

Last post: 6511 days
Last view: 6511 days
Posted on 04-14-06 08:41 PM Link | Quote
I believe you can use append if its text, but since its for a rom editor, I cant imagine it is, although ive never tried append with binary files, it might work if done right.

Append opens and goes to the end of the file to start writing instead of starting at the beginning.
Mega-Dog



 





Since: 11-19-05
From: Minnesota

Last post: 6316 days
Last view: 6297 days
Posted on 04-14-06 11:41 PM Link | Quote
will if you are opening the file for binary it will work just extend your array size and write it.
wboy









Since: 01-05-06

Last post: 6478 days
Last view: 6478 days
Posted on 04-15-06 09:20 PM Link | Quote
In addition to Mega-dog's post, simply...

Load the binary file into a byte array.

Increase the size fo the the array keeping the currently stored values:
ReDim Preserve bytArray(0 To lngNewFileSize)

Save the file.
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6295 days
Last view: 6294 days
Posted on 04-24-06 03:46 PM Link | Quote
just write past the EOF. I did that in binary with my own code, without using byte arrays or anything. it worked fine.
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - Increasing a file's size in Vb6 |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.010 seconds; used 367.11 kB (max 440.62 kB)