Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to parse csv file into xml file Pin
Rudolf Jan26-Apr-07 0:41
Rudolf Jan26-Apr-07 0:41 
GeneralRe: How to parse csv file into xml file Pin
DON34526-Apr-07 2:39
DON34526-Apr-07 2:39 
AnswerRe: How to parse csv file into xml file Pin
Vikram A Punathambekar25-Apr-07 21:04
Vikram A Punathambekar25-Apr-07 21:04 
QuestionMouse over a control Pin
Keshav V. Kamat25-Apr-07 18:37
Keshav V. Kamat25-Apr-07 18:37 
AnswerRe: Mouse over a control Pin
Nouman Bhatti25-Apr-07 19:04
Nouman Bhatti25-Apr-07 19:04 
AnswerRe: Mouse over a control Pin
Martin#25-Apr-07 20:16
Martin#25-Apr-07 20:16 
Questionsave file as atext...using v.s 2003 ! Pin
mr jets25-Apr-07 17:53
mr jets25-Apr-07 17:53 
AnswerRe: save file as atext...using v.s 2003 ! Pin
Christian Graus25-Apr-07 19:22
protectorChristian Graus25-Apr-07 19:22 
Oh, you're using VS2003. Then WriteAllText is not an option.


mr jets wrote:
cannot implicity convert type 'System.IO.StreamWritet'to 'System.IO.Stream'.


You keep posting this, there's no such thing as StreamWritet, is this really not a typo ?

System.IO.FileStream fs = new System.IO.FileStream("c:\\testing.txt", System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite);

// create a stream writer
System.IO.StreamWriter sw = new System.IO.StreamWriter(fs, System.Text.Encoding.ASCII);

// write to file (buffer), where textbox1 is your text box
sw.Write("text");

// flush buffer (so the text really goes into the file)
sw.Flush();

// close stream writer and file
sw.Close();
fs.Close();


Perhaps the defaults for the params you're not passing in, are not the ones you need ?


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: save file as atext...using v.s 2003 ! Pin
mr jets26-Apr-07 5:22
mr jets26-Apr-07 5:22 
GeneralRe: save file as atext...using v.s 2003 ! Pin
Christian Graus26-Apr-07 11:16
protectorChristian Graus26-Apr-07 11:16 
GeneralRe: save file as atext...using v.s 2003 ! Pin
mr jets26-Apr-07 13:00
mr jets26-Apr-07 13:00 
GeneralRe: save file as atext...using v.s 2003 ! Pin
Christian Graus26-Apr-07 22:08
protectorChristian Graus26-Apr-07 22:08 
Questionpostback or DoPostback Pin
karl170125-Apr-07 14:46
karl170125-Apr-07 14:46 
AnswerRe: postback or DoPostback Pin
karl170125-Apr-07 16:17
karl170125-Apr-07 16:17 
Questionsave & open file... Pin
mr jets25-Apr-07 14:32
mr jets25-Apr-07 14:32 
AnswerRe: save & open file... Pin
Christian Graus25-Apr-07 14:43
protectorChristian Graus25-Apr-07 14:43 
GeneralRe: save & open file... Pin
mr jets25-Apr-07 15:10
mr jets25-Apr-07 15:10 
GeneralRe: save & open file... Pin
Christian Graus25-Apr-07 15:14
protectorChristian Graus25-Apr-07 15:14 
GeneralRe: save & open file... Pin
mr jets25-Apr-07 15:19
mr jets25-Apr-07 15:19 
GeneralRe: save & open file... Pin
mr jets25-Apr-07 16:21
mr jets25-Apr-07 16:21 
QuestionInteger/Decimal control in Windows Froms Pin
Nooie25-Apr-07 13:59
Nooie25-Apr-07 13:59 
AnswerRe: Integer/Decimal control in Windows Froms Pin
Christian Graus25-Apr-07 14:21
protectorChristian Graus25-Apr-07 14:21 
QuestionCombinations or Permutations or something else?? Pin
allenmpcx25-Apr-07 12:18
allenmpcx25-Apr-07 12:18 
AnswerRe: Combinations or Permutations or something else?? Pin
Arun.Immanuel25-Apr-07 15:08
Arun.Immanuel25-Apr-07 15:08 
AnswerRe: Combinations or Permutations or something else?? [modified] Pin
Luc Pattyn25-Apr-07 15:52
sitebuilderLuc Pattyn25-Apr-07 15:52 

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.