Click here to Skip to main content
15,878,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: SOAP from scratch? Pin
jschell11-Feb-14 11:04
jschell11-Feb-14 11:04 
QuestionReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 4:39
computerpublic10-Feb-14 4:39 
AnswerRe: ReadAllBytes Method of the File Class PROBLEM Pin
Richard Deeming10-Feb-14 5:30
mveRichard Deeming10-Feb-14 5:30 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 5:45
computerpublic10-Feb-14 5:45 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
Richard Deeming10-Feb-14 5:56
mveRichard Deeming10-Feb-14 5:56 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 6:27
computerpublic10-Feb-14 6:27 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
Richard Deeming10-Feb-14 6:54
mveRichard Deeming10-Feb-14 6:54 
AnswerRe: ReadAllBytes Method of the File Class PROBLEM Pin
Matt T Heffron10-Feb-14 7:47
professionalMatt T Heffron10-Feb-14 7:47 
You can use the BitArray class to treat the array of bytes as an array of bits.
C#
byte[] data = File.ReadAllBytes("C:\Folder\TheFileToRead.ext");
BitArray dataAsBits = new BitArray(data);

See BitArray Class[^]
Note the order of the bits in the bytes!!
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
BillWoodruff10-Feb-14 21:23
professionalBillWoodruff10-Feb-14 21:23 
AnswerRe: ReadAllBytes Method of the File Class PROBLEM Pin
BillWoodruff10-Feb-14 6:37
professionalBillWoodruff10-Feb-14 6:37 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 6:51
computerpublic10-Feb-14 6:51 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
Dave Kreskowiak10-Feb-14 7:14
mveDave Kreskowiak10-Feb-14 7:14 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
Matt T Heffron10-Feb-14 7:49
professionalMatt T Heffron10-Feb-14 7:49 
QuestionLock Controls or Record for Add/Edit/Delete C# Pin
ahmed_one9-Feb-14 22:59
ahmed_one9-Feb-14 22:59 
AnswerRe: Lock Controls or Record for Add/Edit/Delete C# Pin
Keith Barrow10-Feb-14 1:04
professionalKeith Barrow10-Feb-14 1:04 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
ahmed_one10-Feb-14 1:13
ahmed_one10-Feb-14 1:13 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
Keith Barrow10-Feb-14 1:54
professionalKeith Barrow10-Feb-14 1:54 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
ahmed_one10-Feb-14 2:36
ahmed_one10-Feb-14 2:36 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
Eddy Vluggen11-Feb-14 8:20
professionalEddy Vluggen11-Feb-14 8:20 
GeneralRe: Lock Controls or Record for Add/Edit/Delete C# Pin
ahmed_one11-Feb-14 17:21
ahmed_one11-Feb-14 17:21 
Questionword automatic rotation Pin
kskumaran9-Feb-14 22:15
kskumaran9-Feb-14 22:15 
GeneralRe: word automatic rotation Pin
harold aptroot9-Feb-14 22:18
harold aptroot9-Feb-14 22:18 
GeneralRe: word automatic rotation Pin
kskumaran9-Feb-14 22:21
kskumaran9-Feb-14 22:21 
GeneralRe: word automatic rotation Pin
harold aptroot9-Feb-14 22:26
harold aptroot9-Feb-14 22:26 
GeneralRe: word automatic rotation Pin
kskumaran10-Feb-14 1:07
kskumaran10-Feb-14 1:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.