Click here to Skip to main content
15,915,086 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to use print preview for printing a selected part of the web page using C#.NET Pin
netJP12L28-Mar-07 5:29
netJP12L28-Mar-07 5:29 
Questionabout delegate and event Pin
upadesh28-Mar-07 2:05
upadesh28-Mar-07 2:05 
AnswerRe: about delegate and event Pin
Stefan Troschuetz28-Mar-07 2:18
Stefan Troschuetz28-Mar-07 2:18 
AnswerRe: about delegate and event Pin
rah_sin28-Mar-07 2:23
professionalrah_sin28-Mar-07 2:23 
AnswerRe: about delegate and event Pin
Elina Blank28-Mar-07 4:36
sitebuilderElina Blank28-Mar-07 4:36 
QuestionInherited permissions for a file or directory Pin
Alper Alaca28-Mar-07 2:04
Alper Alaca28-Mar-07 2:04 
AnswerRe: Inherited permissions for a file or directory Pin
Alper Alaca28-Mar-07 4:11
Alper Alaca28-Mar-07 4:11 
QuestionSend ArrayList to ( webMethod) - Web Service Pin
mm31028-Mar-07 1:59
mm31028-Mar-07 1:59 
QuestionIssue with NameValueCollection Pin
SakthiSurya28-Mar-07 1:15
SakthiSurya28-Mar-07 1:15 
AnswerRe: Issue with NameValueCollection Pin
Vikram A Punathambekar28-Mar-07 2:19
Vikram A Punathambekar28-Mar-07 2:19 
GeneralRe: Issue with NameValueCollection Pin
SakthiSurya28-Mar-07 2:28
SakthiSurya28-Mar-07 2:28 
GeneralRe: Issue with NameValueCollection Pin
joon vh.28-Mar-07 3:44
joon vh.28-Mar-07 3:44 
AnswerRe: Issue with NameValueCollection Pin
rah_sin28-Mar-07 2:40
professionalrah_sin28-Mar-07 2:40 
GeneralRe: Issue with NameValueCollection Pin
SakthiSurya28-Mar-07 18:27
SakthiSurya28-Mar-07 18:27 
QuestionHow to read Textfile FAST into memory and then read LINE Pin
error140828-Mar-07 0:52
error140828-Mar-07 0:52 
AnswerRe: How to read Textfile FAST into memory and then read LINE Pin
Pete O'Hanlon28-Mar-07 2:03
mvePete O'Hanlon28-Mar-07 2:03 
AnswerRe: How to read Textfile FAST into memory and then read LINE Pin
woudwijk28-Mar-07 5:18
woudwijk28-Mar-07 5:18 
you could use FileStream to copy the file into a MemoryStream, and later use StreamReader from MemoryStream to parse it.
<br />
FileStream fs = new FileStream("text.txt", FileMode.Open, FileAccess.Read);<br />
MemoryStream ms = new MemoryStream();<br />
<br />
byte[] buf = new byte[4096];<br />
int bytes = 0;<br />
while((bytes = fs.Read(buf, 0, 4096)) > 0) {<br />
   ms.Write(buf, 0, bytes);<br />
}<br />
fs.close();<br />
<br />
StreamReader sr = new StreamReader(ms);<br />
string x = sr.ReadLine();<br />




My second computer is your linux box.

QuestionAbout MDI applications Pin
Raheem MA28-Mar-07 0:49
Raheem MA28-Mar-07 0:49 
AnswerRe: About MDI applications Pin
Pete O'Hanlon28-Mar-07 1:34
mvePete O'Hanlon28-Mar-07 1:34 
QuestionDataAdapter.Fill(DataSet) in a thread Pin
Seishin#28-Mar-07 0:43
Seishin#28-Mar-07 0:43 
Questionswitch statement Pin
blackjack215028-Mar-07 0:30
blackjack215028-Mar-07 0:30 
AnswerRe: switch statement Pin
Brady Kelly28-Mar-07 0:34
Brady Kelly28-Mar-07 0:34 
AnswerRe: switch statement Pin
Muammar©28-Mar-07 0:34
Muammar©28-Mar-07 0:34 
GeneralRe: switch statement Pin
blackjack215028-Mar-07 0:40
blackjack215028-Mar-07 0:40 
GeneralRe: switch statement Pin
woudwijk28-Mar-07 1:42
woudwijk28-Mar-07 1:42 

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.