Open Binary file as Ascii 
Author Message
 Open Binary file as Ascii

I have a huge(150 meg) binary .bip file. At the beginning of this file is
header information in plain text.
I am trying to get VB 5.0 to read that information, but it opens the file as
binary so it gets nothing but junk.

Is there a way to tell VB to open a file as text only.

Todd



Fri, 08 Jun 2001 03:00:00 GMT  
 Open Binary file as Ascii
Yes on the open and read it char by char not with via variables. This will
stop VB looking for EOL, EOF, nulls, commas, UNICODE, etc.

Quote:
>I have a huge(150 meg) binary .bip file. At the beginning of this file is
>header information in plain text.
>I am trying to get VB 5.0 to read that information, but it opens the file
as
>binary so it gets nothing but junk.

>Is there a way to tell VB to open a file as text only.

>Todd



Fri, 08 Jun 2001 03:00:00 GMT  
 Open Binary file as Ascii
Just read your header in a byte at the time, then convert the byte data to
character.
Quote:

> I have a huge(150 meg) binary .bip file. At the beginning of this file is
> header information in plain text.
> I am trying to get VB 5.0 to read that information, but it opens the file as
> binary so it gets nothing but junk.

> Is there a way to tell VB to open a file as text only.

> Todd



Fri, 08 Jun 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. open mdb file and create several tab delimited ascii files

2. File Type (Binary or ASCII)

3. Write non-ASCII chars into binary file

4. File conversion - Binary to ASCII

5. Is file ASCII or WinWord (or other binary) ?

6. Searching ASCII in a binary file ?

7. Inet control file transfer mode (binary/ascii)

8. How I send a binary/ascii file using winsock

9. How to write non-ASCII chars into a binary file

10. Opening 8-bit ASCII text files automatically?

11. ASCII FILES how to open?

12. How to open and read certain info from a ASCII file

 

 
Powered by phpBB® Forum Software