Click here to Skip to main content
15,617,020 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert HTML to RTF Pin
Sebastian T Xavier15-Jul-09 4:23
Sebastian T Xavier15-Jul-09 4:23 
GeneralRe: Convert HTML to RTF Pin
Luc Pattyn15-Jul-09 4:11
sitebuilderLuc Pattyn15-Jul-09 4:11 
GeneralRe: Convert HTML to RTF Pin
Dave Kreskowiak15-Jul-09 5:20
mveDave Kreskowiak15-Jul-09 5:20 
GeneralRe: Convert HTML to RTF Pin
Luc Pattyn15-Jul-09 5:35
sitebuilderLuc Pattyn15-Jul-09 5:35 
GeneralRe: Convert HTML to RTF Pin
Dave Kreskowiak15-Jul-09 7:29
mveDave Kreskowiak15-Jul-09 7:29 
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 
Hi I am trying to read from somewhere in the middle of the file with Binaryreader but I can't.
BinaryReader br = new BinaryReader(MyFileStream);
br.BaseStream.Position = locationtostartreading; // br.BaseStream.Seek(locationtostartreading,SeekOrigin.Begin);

byte[] context = new byte[br.BaseStream.Length - locationtostartreading];

br.Read(context, 0, (int)(br.BaseStream.Length - locationtostartreading));

return Encoding.ASCII.GetString(context);


But it starts reading from beginning whatever I do.

Thanks.
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
mvaOriginalGriff15-Jul-09 4:04 
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
mvaOriginalGriff15-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
mvaOriginalGriff15-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
mvaOriginalGriff15-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 

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.