Skip to Content
0
Former Member
Mar 02, 2009 at 11:32 AM

How to create a binary file

52 Views

Hello!!

I have to create a binary file, but when i create with the next lines:

Dim oFile As System.IO.FileStream

oFile = System.IO.File.Create(oRutaFichero)

and i write with this:

My.Computer.FileSystem.WriteAllText(oRutaFichero, "TEXT", True)

when i access to the file properties, the codification is UTF-8 and it must be ANSI

How can i do this?

Thank's a lot!!!

regards, bye