Solved

How can I update or Append a binary file?

Posted on 2000-02-23
1
153 Views
Last Modified: 2010-05-02
I want to append or Update a binary file into a disk. As I'm using a put statement to  to write bninary data into a file. From an array
I want to update the file each time I write binary data into a file without deleting the previous one.
 I don't want use get statement first to read data thenupdated together.
as the array data is too big.
H
0
Comment
Question by:gargjapan
1 Comment
 
LVL 18

Accepted Solution

by:
deighton earned 5 total points
Comment Utility
Find out the size of the file using the Lof command ( Lof(1) for example)  and hence how many records there are and then position to the end of the file by using

 put #1,records+1,x
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now