Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
Sukasa Posts: 788/2068 |
just write past the EOF. I did that in binary with my own code, without using byte arrays or anything. it worked fine. |
wboy Posts: 9/15 |
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. |
Mega-Dog Posts: 34/72 |
will if you are opening the file for binary it will work just extend your array size and write it. |
dcahrakos Posts: 370/499 |
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. |
D 2007 Posts: 134/497 |
Writing past the end-of-file works.
At least in QBASIC. Not sure about later, but I'd imagine it was the same. |
interdpth Posts: 78/362 |
So anyone know how to increase a file size? It's for my ROM editor so would any one mind helping? |