Read/Write to File 
Author Message
 Read/Write to File

I am having trouble reading and writing to a binary file.  I open file
as binary and store it to a string.  Then i rewrite the string into
another file.  When i open this new file, some bytes are always missing.

For example, i opened up an executable, then wrote it into another
filename.  The one that my program wrote to does not work.  Can u help
me or make an example?

Thx
Sylikc



Fri, 06 Oct 2000 03:00:00 GMT  
 Read/Write to File

Hello Sylic,

When you read a line from the binary file you have to store it as Byte(and
not a string) so you could make a an array

Dim ReadData() As Byte

and then put the data into this array and then write this array to the file.

hope this helps

All the BEst



Mon, 09 Oct 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Read/Write INI Files w/Access 7.0

2. Problem reading/writing/deleting file

3. want to read/write a file on the client

4. READ/WRITE TEXT FILES

5. Read/Write .INI File Routine?

6. Read/write INI file

7. Read/write text file

8. Read/Write to file, character by character

9. Reading / Writing AVI files

10. Reading/Writing INI files

11. HOWTO: Read/write INI-file

12. Read/Write binary files in VB

 

 
Powered by phpBB® Forum Software