Click here to Skip to main content
15,867,765 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert HTML to RTF Pin
Luc Pattyn15-Jul-09 7:36
sitebuilderLuc Pattyn15-Jul-09 7:36 
AnswerRe: Convert HTML to RTF Pin
V.15-Jul-09 4:09
professionalV.15-Jul-09 4:09 
QuestionStarting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 3:33
SimpleData15-Jul-09 3:33 
AnswerRe: Starting to read a file from an origin with Binaryreader Pin
Luc Pattyn15-Jul-09 3:41
sitebuilderLuc Pattyn15-Jul-09 3:41 
AnswerRe: Starting to read a file from an origin with Binaryreader Pin
Ennis Ray Lynch, Jr.15-Jul-09 3:45
Ennis Ray Lynch, Jr.15-Jul-09 3:45 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 4:05
SimpleData15-Jul-09 4:05 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
Ennis Ray Lynch, Jr.15-Jul-09 4:11
Ennis Ray Lynch, Jr.15-Jul-09 4:11 
AnswerRe: Starting to read a file from an origin with Binaryreader Pin
OriginalGriff15-Jul-09 4:04
mveOriginalGriff15-Jul-09 4:04 
I think you have been trying to do this for a couple of days, yes?

I also think you have the wrong idea what a BinaryReader is and what BinaryReader.Read(byte[], int, int) actually does.

A BinaryReader is not intended to read a stream of binary data from a file. It is intended to read primitive types (such as int32, int64 etc) from a file. What you appear to be trying to do needs a straight FileStream or similar.

The BinaryReader.Read(byte[] buffer, int start, int length) reads length bytes into the buffer, starting to fill at buffer[start] - not reads bytes into buffer starting to fill from stream[start].

Search MSDN for BinaryReader; it is all there in English. Or Microsofts' version of English, at least.

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 4:13
SimpleData15-Jul-09 4:13 
AnswerRe: Starting to read a file from an origin with Binaryreader Pin
OriginalGriff15-Jul-09 4:33
mveOriginalGriff15-Jul-09 4:33 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 4:44
SimpleData15-Jul-09 4:44 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
Luc Pattyn15-Jul-09 4:54
sitebuilderLuc Pattyn15-Jul-09 4:54 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
OriginalGriff15-Jul-09 4:59
mveOriginalGriff15-Jul-09 4:59 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 4:52
SimpleData15-Jul-09 4:52 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
OriginalGriff15-Jul-09 5:03
mveOriginalGriff15-Jul-09 5:03 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 5:08
SimpleData15-Jul-09 5:08 
Questiondelete rows in listView using KeyPressed event and Delete Key Pin
al3xutzu0015-Jul-09 3:14
al3xutzu0015-Jul-09 3:14 
AnswerRe: delete rows in listView using KeyPressed event and Delete Key Pin
Christian Graus15-Jul-09 3:14
protectorChristian Graus15-Jul-09 3:14 
GeneralRe: delete rows in listView using KeyPressed event and Delete Key Pin
al3xutzu0015-Jul-09 3:20
al3xutzu0015-Jul-09 3:20 
GeneralRe: delete rows in listView using KeyPressed event and Delete Key Pin
Christian Graus15-Jul-09 3:45
protectorChristian Graus15-Jul-09 3:45 
GeneralRe: delete rows in listView using KeyPressed event and Delete Key Pin
Nagy Vilmos15-Jul-09 3:52
professionalNagy Vilmos15-Jul-09 3:52 
GeneralRe: delete rows in listView using KeyPressed event and Delete Key Pin
Nagy Vilmos15-Jul-09 3:59
professionalNagy Vilmos15-Jul-09 3:59 
AnswerRe: delete rows in listView using KeyPressed event and Delete Key Pin
MatheusMK35-Aug-09 10:40
MatheusMK35-Aug-09 10:40 
QuestionRecreate OracleDataReader? Pin
Mark McArthey15-Jul-09 3:10
Mark McArthey15-Jul-09 3:10 
AnswerRe: Recreate OracleDataReader? Pin
Ennis Ray Lynch, Jr.15-Jul-09 3:24
Ennis Ray Lynch, Jr.15-Jul-09 3:24 

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.