Click here to Skip to main content
16,005,697 members
Home / Discussions / C#
   

C#

 
QuestionReading a string byte by byte from database Pin
Meysam Mahfouzi18-Nov-05 16:41
Meysam Mahfouzi18-Nov-05 16:41 
AnswerRe: Reading a string byte by byte from database Pin
Colin Angus Mackay18-Nov-05 21:34
Colin Angus Mackay18-Nov-05 21:34 
QuestionRight So i have this string full of text and '\n' and i write it to a file Pin
Anthony Mushrow18-Nov-05 13:54
professionalAnthony Mushrow18-Nov-05 13:54 
AnswerRe: Right So i have this string full of text and '\n' and i write it to a file Pin
afinnell18-Nov-05 15:46
afinnell18-Nov-05 15:46 
AnswerRe: Right So i have this string full of text and '\n' and i write it to a file Pin
leppie18-Nov-05 20:47
leppie18-Nov-05 20:47 
AnswerRe: Right So i have this string full of text and '\n' and i write it to a file Pin
Colin Angus Mackay18-Nov-05 21:37
Colin Angus Mackay18-Nov-05 21:37 
QuestionRead a file Pin
picasso218-Nov-05 12:53
picasso218-Nov-05 12:53 
AnswerRe: Read a file Pin
Anthony Mushrow18-Nov-05 13:49
professionalAnthony Mushrow18-Nov-05 13:49 
Well, i've just been doing this kind of stuff, if you want to add a line of the file to your list box then maybe you could:

StreamReader SR;<br />
<br />
FileStream FS = File.Open("location of file", FileMode.Open, FileAccess.Read);<br />
<br />
SR = new StreamReader(FS);<br />
<br />
listBox.Items.Add(SR.ReadLine());<br />


Then just keep doing that until you get to the end of the file, i'm too tired to think of the code right now, i'm only still up cus i'm watching children in need Smile | :)

and dont forget to close and null your StreamReader
GeneralRe: Read a file Pin
picasso218-Nov-05 19:22
picasso218-Nov-05 19:22 
GeneralRe: Read a file Pin
leppie18-Nov-05 20:57
leppie18-Nov-05 20:57 
GeneralRe: Read a file Pin
picasso218-Nov-05 21:13
picasso218-Nov-05 21:13 
GeneralRe: Read a file Pin
leppie18-Nov-05 21:43
leppie18-Nov-05 21:43 
Questioncalling win32 dll in C# Pin
Manu_8118-Nov-05 11:04
Manu_8118-Nov-05 11:04 
AnswerRe: calling win32 dll in C# Pin
leppie18-Nov-05 21:38
leppie18-Nov-05 21:38 
AnswerRe: calling win32 dll in C# Pin
Colin Angus Mackay18-Nov-05 21:42
Colin Angus Mackay18-Nov-05 21:42 
QuestionMultiple Window Interface Pin
zaboboa18-Nov-05 7:13
zaboboa18-Nov-05 7:13 
AnswerRe: Multiple Window Interface Pin
Dan Neely18-Nov-05 8:23
Dan Neely18-Nov-05 8:23 
QuestionMultiple User Inerface Pin
zaboboa18-Nov-05 7:12
zaboboa18-Nov-05 7:12 
AnswerRe: Multiple User Inerface Pin
Curtis Schlak.20-Nov-05 7:11
Curtis Schlak.20-Nov-05 7:11 
QuestionTraverse Active Directory Pin
CoCHeSe5318-Nov-05 6:06
CoCHeSe5318-Nov-05 6:06 
QuestionC# (beginner) book recommendation Pin
ddmcr18-Nov-05 4:28
ddmcr18-Nov-05 4:28 
AnswerRe: C# (beginner) book recommendation Pin
Dan Neely18-Nov-05 5:33
Dan Neely18-Nov-05 5:33 
AnswerRe: C# (beginner) book recommendation Pin
SeanCM18-Nov-05 9:02
SeanCM18-Nov-05 9:02 
Questionculture with Microsoft.Office.Interop.Excel Pin
MihaiChioariu18-Nov-05 3:58
MihaiChioariu18-Nov-05 3:58 
QuestionCrystal reports setup problem Pin
x-trate17-Nov-05 23:38
x-trate17-Nov-05 23:38 

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.