Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
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 
QuestionMemory leaks! Pin
Duong Tien Nam28-Mar-07 0:22
Duong Tien Nam28-Mar-07 0:22 
AnswerRe: Memory leaks! Pin
Martin#28-Mar-07 1:12
Martin#28-Mar-07 1:12 
AnswerRe: Memory leaks! Pin
Scott Dorman28-Mar-07 5:41
professionalScott Dorman28-Mar-07 5:41 
Questionhow to show Multiple colors in a Single Progress Bar Pin
pashitech28-Mar-07 0:17
pashitech28-Mar-07 0:17 
AnswerRe: how to show Multiple colors in a Single Progress Bar Pin
joon vh.28-Mar-07 3:48
joon vh.28-Mar-07 3:48 
GeneralRe: how to show Multiple colors in a Single Progress Bar Pin
pashitech28-Mar-07 4:19
pashitech28-Mar-07 4:19 
GeneralRe: how to show Multiple colors in a Single Progress Bar Pin
joon vh.28-Mar-07 4:27
joon vh.28-Mar-07 4:27 
GeneralRe: how to show Multiple colors in a Single Progress Bar Pin
pashitech28-Mar-07 5:48
pashitech28-Mar-07 5:48 
QuestionTask Manager's Performance tab Pin
waheed awan27-Mar-07 23:12
waheed awan27-Mar-07 23:12 

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.