Sinisterly
Writing in raw 1's and 0's - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework)
+--- Thread: Writing in raw 1's and 0's (/Thread-Writing-in-raw-1-s-and-0-s)



Writing in raw 1's and 0's - 1llusion - 01-31-2011

Hey Smile
Past few days I was trying to make a program to write raw 0's and 1's into a file.
Sadly I failed, since all the ways I founf write in ASCII

here is last code I tested:
Code:
Dim fs As New FileStream(TextBox2.Text, FileMode.Create, FileAccess.Write)
        Dim s As New BinaryWriter(fs)
        s.BaseStream.Seek(0, SeekOrigin.End)
        s.Write(TextBox1.Text)
        s.Close()

Thanks Smile

Enjoy!!!

If you wanna test, here is some translations: http://1llusion.fileave.com/test.txt

Thanks again Smile