hello,

i have an ASCII file and i open it with: StreamReader SR = File.OpenText("pathtofile"), but this method opens an UTF-8 encoded text file. i read that everything that's UTF-8 is also ASCII but i don't really understand these encodings. so, is it a problem if i open the file in this manner?

thank you

thanks snake. i read in that article that "A UTF-8 file that contains only ASCII characters is identical to an ASCII file. ", so my guess again is that if i have an ASCII file that only contains digits and commas, i can open it with File.OpenText("pathtofile").

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.