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

C#

 
Questionview .doc file in the same format Pin
devinaren25-Feb-09 15:38
devinaren25-Feb-09 15:38 
AnswerRe: view .doc file in the same format Pin
Avi Farah25-Feb-09 16:38
Avi Farah25-Feb-09 16:38 
AnswerRe: view .doc file in the same format Pin
Christian Graus25-Feb-09 18:11
protectorChristian Graus25-Feb-09 18:11 
Questionindex += 1 equals index + 2 ? [modified] Pin
Lodeclaw25-Feb-09 11:59
Lodeclaw25-Feb-09 11:59 
AnswerRe: index += 1 equals index + 2 ? Pin
Lodeclaw25-Feb-09 12:19
Lodeclaw25-Feb-09 12:19 
GeneralRe: index += 1 equals index + 2 ? Pin
Calin Tatar25-Feb-09 12:24
Calin Tatar25-Feb-09 12:24 
GeneralRe: index += 1 equals index + 2 ? Pin
Lodeclaw25-Feb-09 12:25
Lodeclaw25-Feb-09 12:25 
QuestionTransfer a txt file Pin
bar300025-Feb-09 11:05
bar300025-Feb-09 11:05 
Hi,
I am trying to transfer a txt file by loading it and saving it with a save file dialog.
SaveFileDialog saveDialog = new SaveFileDialog();
          saveDialog.AddExtension = true;
          saveDialog.FileName = "Checkers Game";
          saveDialog.InitialDirectory = @"C:\Documents and Settings\Bar\My Documents\";
          saveDialog.OverwritePrompt = true;
          saveDialog.Title = "Save game";
          saveDialog.ValidateNames = true;
          saveDialog.ShowDialog();
          if (saveDialog.FileName != "")
          {
              writer.Close();
              file.Close();
              FileStream fs = new FileStream(@"C:\Documents and Settings\Bar\My Documents\savegame.txt", FileMode.Open);
              fs = (System.IO.FileStream)saveDialog.OpenFile();

          }

but when i go to the saved file i get an empty file even though the text i loaded isn't empty.
ThanksSmile | :)
AnswerRe: Transfer a txt file Pin
Alan Balkany25-Feb-09 11:18
Alan Balkany25-Feb-09 11:18 
GeneralRe: Transfer a txt file Pin
bar300025-Feb-09 11:28
bar300025-Feb-09 11:28 
AnswerRe: Transfer a txt file Pin
Christian Graus25-Feb-09 11:27
protectorChristian Graus25-Feb-09 11:27 
GeneralRe: Transfer a txt file Pin
bar300025-Feb-09 11:35
bar300025-Feb-09 11:35 
GeneralRe: Transfer a txt file Pin
vaghelabhavesh25-Feb-09 13:49
vaghelabhavesh25-Feb-09 13:49 
AnswerRe: Transfer a txt file Pin
Luc Pattyn25-Feb-09 11:45
sitebuilderLuc Pattyn25-Feb-09 11:45 
AnswerRe: Transfer a txt file Pin
harold aptroot25-Feb-09 12:54
harold aptroot25-Feb-09 12:54 
AnswerRe: Transfer a txt file Pin
Luc Pattyn25-Feb-09 13:15
sitebuilderLuc Pattyn25-Feb-09 13:15 
AnswerRe: Transfer a txt file [modified] Pin
Megidolaon25-Feb-09 21:59
Megidolaon25-Feb-09 21:59 
QuestionRTF Fields have a gap between them when placed against each other. Pin
Ryan Esteves25-Feb-09 9:47
professionalRyan Esteves25-Feb-09 9:47 
GeneralRe: RTF Fields have a gap between them when placed against each other. Pin
Lodeclaw25-Feb-09 12:30
Lodeclaw25-Feb-09 12:30 
GeneralRe: RTF Fields have a gap between them when placed against each other. Pin
Ryan Esteves26-Feb-09 4:19
professionalRyan Esteves26-Feb-09 4:19 
AnswerRe: RTF Fields have a gap between them when placed against each other. Pin
Ryan Esteves3-Mar-09 6:00
professionalRyan Esteves3-Mar-09 6:00 
QuestionDynamically passing a variable list of parameters to a Generic delegate? Pin
Steve Holdorf25-Feb-09 9:32
Steve Holdorf25-Feb-09 9:32 
QuestionRe: Dynamically passing a variable list of parameters to a Generic delegate? Pin
Steve Holdorf25-Feb-09 10:16
Steve Holdorf25-Feb-09 10:16 
Questionwill firewall bolck the tcp listner ? Pin
Mubeen.asim25-Feb-09 8:40
Mubeen.asim25-Feb-09 8:40 
AnswerRe: will firewall bolck the tcp listner ? Pin
Christian Graus25-Feb-09 9:09
protectorChristian Graus25-Feb-09 9:09 

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.