Hi All

I have a .dat file in which content is like

X)YF(6ÿÿÿÿÿ™Iÿÿÿÿ which is in ascii


i want to convert it to simple text (readable)

first i need to read this .dat file then convert it to readable text.

pls help me how can i do it with C#

Thanks.

X)YF(6ÿÿÿÿÿ™Iÿÿÿÿ which is in ascii

This is binary code displayed as ascii characters a .dat file is mostly not readable as text as you can see for yourself.

You will have to read in the file in binary mode, which means you will have to know which object(s) the file contains so that it can be dumped into the proper class/datatype.

It might not be ASCII-- are you certain of the codepage, or the encoding?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.