Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 | | |