Click here to Skip to main content
15,885,743 members
Home / Discussions / C#
   

C#

 
GeneralRe: Selected text in TreeNodes Pin
Anonymous31-Jan-04 2:37
Anonymous31-Jan-04 2:37 
GeneralRe: Selected text in TreeNodes Pin
Heath Stewart30-Jan-04 5:02
protectorHeath Stewart30-Jan-04 5:02 
GeneralRe: Selected text in TreeNodes Pin
Guinness4Strength30-Jan-04 4:42
Guinness4Strength30-Jan-04 4:42 
GeneralRe: Selected text in TreeNodes Pin
Heath Stewart30-Jan-04 5:14
protectorHeath Stewart30-Jan-04 5:14 
GeneralRe: Selected text in TreeNodes Pin
Guinness4Strength30-Jan-04 5:18
Guinness4Strength30-Jan-04 5:18 
GeneralRe: Selected text in TreeNodes Pin
Anonymous31-Jan-04 2:37
Anonymous31-Jan-04 2:37 
QuestionAnyone Know a better way ? Pin
Guinness4Strength30-Jan-04 3:49
Guinness4Strength30-Jan-04 3:49 
AnswerRe: Anyone Know a better way ? Pin
Heath Stewart30-Jan-04 4:59
protectorHeath Stewart30-Jan-04 4:59 
Why not just read this into a string, or better yet a StringBuilder (which is mutable). If you store the reference to this StringBuilder you can keep appending to it. Just use StringBuilder.ToString() to get the actual String.

Another way would be to use a MemoryStream and wrap your StreamWriter or StreamReader around it.

One unrelated thing to your question: instead of concatenating strings that represents directories, you should use Path.Combine to take into account the OS's path separator (\, :, /) and to ensure that - if the WorkingDir doesn't not end with a path separator - that it is added before appending the filename (or additional directory name(s)).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Path.Combine Pin
Mike Osbahr30-Jan-04 9:19
Mike Osbahr30-Jan-04 9:19 
GeneralRequest help for 2 newbie questions Pin
bouli30-Jan-04 3:06
bouli30-Jan-04 3:06 
GeneralRe: Request help for 2 newbie questions Pin
Wizard_0130-Jan-04 3:23
Wizard_0130-Jan-04 3:23 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 3:31
bouli30-Jan-04 3:31 
GeneralRe: Request help for 2 newbie questions Pin
Mazdak30-Jan-04 3:40
Mazdak30-Jan-04 3:40 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 3:42
bouli30-Jan-04 3:42 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 3:54
bouli30-Jan-04 3:54 
GeneralRe: Request help for 2 newbie questions Pin
Mazdak30-Jan-04 4:32
Mazdak30-Jan-04 4:32 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 4:36
bouli30-Jan-04 4:36 
GeneralRe: Request help for 2 newbie questions Pin
Mazdak30-Jan-04 4:45
Mazdak30-Jan-04 4:45 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 5:08
bouli30-Jan-04 5:08 
GeneralRe: Request help for 2 newbie questions Pin
Heath Stewart30-Jan-04 4:51
protectorHeath Stewart30-Jan-04 4:51 
GeneralRe: Request help for 2 newbie questions Pin
Mazdak30-Jan-04 5:00
Mazdak30-Jan-04 5:00 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 5:06
bouli30-Jan-04 5:06 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 5:10
bouli30-Jan-04 5:10 
GeneralRe: Request help for 2 newbie questions Pin
Heath Stewart30-Jan-04 5:24
protectorHeath Stewart30-Jan-04 5:24 
GeneralRe: Request help for 2 newbie questions Pin
bouli30-Jan-04 5:28
bouli30-Jan-04 5:28 

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.