Click here to Skip to main content
16,013,440 members
Home / Discussions / C#
   

C#

 
QuestionUse \ in string? Pin
Brian Olej8-Jun-02 12:37
Brian Olej8-Jun-02 12:37 
AnswerRe: Use \ in string? Pin
James T. Johnson8-Jun-02 13:05
James T. Johnson8-Jun-02 13:05 
GeneralRe: Use \ in string? Pin
Brian Olej8-Jun-02 14:22
Brian Olej8-Jun-02 14:22 
AnswerRe: Use \ in string? Pin
Nick Parker8-Jun-02 18:43
protectorNick Parker8-Jun-02 18:43 
Questionfunction pointer in C#? Pin
Todd Smith7-Jun-02 14:36
Todd Smith7-Jun-02 14:36 
AnswerRe: function pointer in C#? Pin
James T. Johnson7-Jun-02 14:59
James T. Johnson7-Jun-02 14:59 
GeneralRe: function pointer in C#? Pin
Todd Smith7-Jun-02 15:12
Todd Smith7-Jun-02 15:12 
GeneralFile I/O Pin
7-Jun-02 13:36
suss7-Jun-02 13:36 
Is there a good tutorial somewhere that includes basic file i/o?

I've found this:

// Create a text file C:\temp\mcb.txt
FileStream fs = new FileStream(@"c:\mcb.txt" , FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter filef = new StreamWriter(fs);

// Write to the file using StreamWriter class
filef.BaseStream.Seek(0, SeekOrigin.End);
filef.Write(" File Write Operation Starts : ");
filef.WriteLine("{0} {1}", DateTime.Now.ToLongTimeString(),
DateTime.Now.ToLongDateString());
filef.WriteLine(" First Line : Data is first line \n");
filef.WriteLine(" This is next line in the text file. \n ");
filef.Flush();


but it doesn't work... I guess I'm looking for a basic explanation of what each one does and how to use them. A simple working example would be great, a tutorial would be great. Any help would be great Big Grin | :-D

Thanks for the help.
GeneralRe: File I/O Pin
James T. Johnson7-Jun-02 14:03
James T. Johnson7-Jun-02 14:03 
GeneralRe: File I/O Pin
Nish Nishant7-Jun-02 14:11
sitebuilderNish Nishant7-Jun-02 14:11 
GeneralRe: File I/O Pin
8-Jun-02 9:30
suss8-Jun-02 9:30 
GeneralRe: File I/O Pin
Humpo8-Jun-02 10:12
Humpo8-Jun-02 10:12 
GeneralRe: File I/O Pin
James T. Johnson8-Jun-02 10:43
James T. Johnson8-Jun-02 10:43 
GeneralRe: File I/O Pin
8-Jun-02 15:51
suss8-Jun-02 15:51 
GeneralRe: File I/O Pin
8-Jun-02 16:23
suss8-Jun-02 16:23 
GeneralRe: File I/O Pin
Humpo9-Jun-02 1:26
Humpo9-Jun-02 1:26 
GeneralI'm confused, what exactly is C# Pin
Nnamdi Onyeyiri7-Jun-02 12:58
Nnamdi Onyeyiri7-Jun-02 12:58 
GeneralRe: I'm confused, what exactly is C# Pin
James T. Johnson7-Jun-02 14:08
James T. Johnson7-Jun-02 14:08 
GeneralRe: I'm confused, what exactly is C# Pin
Nish Nishant7-Jun-02 14:13
sitebuilderNish Nishant7-Jun-02 14:13 
GeneralRe: I'm confused, what exactly is C# Pin
Christian Graus7-Jun-02 14:40
protectorChristian Graus7-Jun-02 14:40 
GeneralRe: I'm confused, what exactly is C# Pin
James T. Johnson7-Jun-02 15:02
James T. Johnson7-Jun-02 15:02 
QuestionIs the net send GUI app going to get fixed? Pin
7-Jun-02 9:16
suss7-Jun-02 9:16 
GeneralSorted List/Array in C# Pin
sridhar natarajan7-Jun-02 8:37
sridhar natarajan7-Jun-02 8:37 
GeneralRe: Sorted List/Array in C# Pin
Humpo7-Jun-02 12:46
Humpo7-Jun-02 12:46 
GeneralRe: Sorted List/Array in C# Pin
sridhar natarajan10-Jun-02 5:57
sridhar natarajan10-Jun-02 5:57 

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.