Click here to Skip to main content
15,179,830 members
Home / Discussions / C#
   

C#

 
QuestionDotSpatial.Positioning.NmeaInterpreter Pin
loctrice1-Mar-13 4:01
professionalloctrice1-Mar-13 4:01 
AnswerRe: DotSpatial.Positioning.NmeaInterpreter Pin
Eddy Vluggen1-Mar-13 5:57
professionalEddy Vluggen1-Mar-13 5:57 
GeneralRe: DotSpatial.Positioning.NmeaInterpreter Pin
loctrice1-Mar-13 6:04
professionalloctrice1-Mar-13 6:04 
GeneralRe: DotSpatial.Positioning.NmeaInterpreter Pin
Eddy Vluggen1-Mar-13 6:10
professionalEddy Vluggen1-Mar-13 6:10 
Questionsdk Pin
RAJESHSELVARAJ1-Mar-13 0:04
MemberRAJESHSELVARAJ1-Mar-13 0:04 
AnswerRe: sdk Pin
Pete O'Hanlon1-Mar-13 0:24
mvaPete O'Hanlon1-Mar-13 0:24 
AnswerRe: sdk Pin
Dave Kreskowiak1-Mar-13 3:21
mveDave Kreskowiak1-Mar-13 3:21 
QuestionIssue using the StreamWritter Class Pin
TwiztedFreek28-Feb-13 14:16
MemberTwiztedFreek28-Feb-13 14:16 
I have a project that i have to create and write to a text file using the StreamWritter class. i create the file just fine and after playing with it a little got the text to enter into the file correctly but i cant add more text to the file after the inital line or it just truncates whats already inside of it, i want the text inside to add each time the button is clicked even after the program closes and i reopen it. here is my code so far

C#
using System.IO;

namespace SWardVideoSalesApplication
{
    public partial class MainSalesForm : Form
    {
        public MainSalesForm()
        {
            InitializeComponent();
        }

        #region Variables
        //TEST VARIABLES
        StreamWriter testFile = File.CreateText("TestFile2.txt");

        #endregion



C#
private void summaryButton_Click(object sender, EventArgs e)
{
    //Displays the summary text file in a label for the user to read
    //First a simple test of the file writting
    bool Flag = true;

    testFile = File.
    if (Flag)
    {
        testFile.WriteLine("This is a test {0}", todayDate.ToString());
        testFile.Close();
    }
    else
    {
        MessageBox.Show("ERROR");
    }

}

AnswerRe: Issue using the StreamWritter Class Pin
TwiztedFreek28-Feb-13 14:18
MemberTwiztedFreek28-Feb-13 14:18 
AnswerRe: Issue using the StreamWritter Class Pin
Garth J Lancaster28-Feb-13 15:08
professionalGarth J Lancaster28-Feb-13 15:08 
AnswerRe: Issue using the StreamWritter Class Pin
Jegan Thiyagesan1-Mar-13 0:33
MemberJegan Thiyagesan1-Mar-13 0:33 
AnswerRe: Issue using the StreamWritter Class Pin
Keith Barrow1-Mar-13 2:06
professionalKeith Barrow1-Mar-13 2:06 
AnswerRe: Issue using the StreamWritter Class Pin
Defens931-Mar-13 10:35
MemberDefens931-Mar-13 10:35 
QuestionCopy username from text file to website Pin
Muhammad Sayyam28-Feb-13 3:17
MemberMuhammad Sayyam28-Feb-13 3:17 
AnswerRe: Copy username from text file to website Pin
DaveyM6928-Feb-13 4:07
professionalDaveyM6928-Feb-13 4:07 
GeneralRe: Copy username from text file to website Pin
Richard MacCutchan28-Feb-13 4:23
mveRichard MacCutchan28-Feb-13 4:23 
GeneralRe: Copy username from text file to website Pin
DaveyM6928-Feb-13 11:30
professionalDaveyM6928-Feb-13 11:30 
GeneralRe: Copy username from text file to website Pin
Muhammad Sayyam2-Mar-13 21:19
MemberMuhammad Sayyam2-Mar-13 21:19 
GeneralRe: Copy username from text file to website Pin
DaveyM695-Mar-13 4:08
professionalDaveyM695-Mar-13 4:08 
GeneralRe: Copy username from text file to website Pin
DaveyM697-Mar-13 22:51
professionalDaveyM697-Mar-13 22:51 
Questiontooth numbers Pin
Jassim Rahma28-Feb-13 1:35
MemberJassim Rahma28-Feb-13 1:35 
AnswerRe: tooth numbers Pin
Pete O'Hanlon28-Feb-13 2:11
mvaPete O'Hanlon28-Feb-13 2:11 
AnswerRe: tooth numbers Pin
GuyThiebaut28-Feb-13 3:03
professionalGuyThiebaut28-Feb-13 3:03 
QuestionVS2012, C# Office 2007 problem Pin
Daytona67527-Feb-13 10:34
MemberDaytona67527-Feb-13 10:34 
AnswerRe: VS2012, C# Office 2007 problem Pin
Richard MacCutchan27-Feb-13 22:58
mveRichard MacCutchan27-Feb-13 22:58 

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.