Re: extracting the text out of a binary file
- From: "Saber" <saber[.AT.]oxin.ir>
- Date: Fri, 5 Aug 2005 20:14:52 +0430
You can filter the string to just accept range of the numbers and letters.
ASCII table: http://www.lookuptables.com/
But why do you read binary files using text file methods?
--
Saber S.
"RSH" <way_beyond_oops@xxxxxxxxx> wrote in message
news:OyIi6tcmFHA.3960@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I have quite a few .DAT data files that i need to extract the data out of.
> When i open the files in a text editor I see all of the text that I need
> to get at BUT there are a lot of junk (binary?) characters and white space
> in non logical formatting positions.
>
> Here is a small sample of what the data looks like:
>
> 0~ 0501101010512505011132451235 > ô ô
> X 3> Bô
>
>
> MICHAEL B SMITH, DVM PC 123 MAIN ST., STE 600 DALLAS, TX 75252
> MICHAEL SMITH Õ
> s ' 'MICHAEL B NORTON, DVM PC 123 MAIN ST., STE 600 DALLAS, TX
> 75252 ÌZkM Ô
> Bô
> < Ô ' Ò '
> '
> ' ' ' ' â ' Bô
> -D Õ â ' Bô
>
>
> Is it possible to filter out all the junk characters and just get at the
> text? If so could you provide a sample of how?
>
> I tried doing a string replace but the number of characters in the array
> were getting way out of control. I was wondering if the binaryreader
> class might be what I'm looking for but I have no idea on what that really
> does.
>
> Thanks!
> RSH
>
.
- Follow-Ups:
- References:
- extracting the text out of a binary file
- From: RSH
- extracting the text out of a binary file
- Prev by Date: Re: String parsing in VB.net
- Next by Date: excel 2003 and VB.NET
- Previous by thread: extracting the text out of a binary file
- Next by thread: Re: extracting the text out of a binary file
- Index(es):
Relevant Pages
|