Ok, I need to store/retrieve a bit from a data table of 3.268.760 bits long.
Using w As New BinaryWriter(File.Open("test.bin", FileMode.Create))
for x = 1 to 3268760
For i = 1 To 3268760
w.Write(countBits(bitLikeness(u(i), u(x))) > 10)
Next
Next
End Using
the w.write(?) stores a boolean value meaning 0/1 for false/true values, but Vb.net seems to use an whole byte to store this data which is too expensive for my table (3.268.760^2)
Is there a pratical way to store/retrive single bits from a file using vb.net? (meaning as little as possible conversion to other types).