Click here to Skip to main content
15,883,982 members
Home / Discussions / C#
   

C#

 
QuestionDotSpatial.Positioning.NmeaInterpreter Pin
loctrice1-Mar-13 3:01
professionalloctrice1-Mar-13 3:01 
AnswerRe: DotSpatial.Positioning.NmeaInterpreter Pin
Eddy Vluggen1-Mar-13 4:57
professionalEddy Vluggen1-Mar-13 4:57 
GeneralRe: DotSpatial.Positioning.NmeaInterpreter Pin
loctrice1-Mar-13 5:04
professionalloctrice1-Mar-13 5:04 
GeneralRe: DotSpatial.Positioning.NmeaInterpreter Pin
Eddy Vluggen1-Mar-13 5:10
professionalEddy Vluggen1-Mar-13 5:10 
Questionsdk Pin
RAJESHSELVARAJ28-Feb-13 23:04
RAJESHSELVARAJ28-Feb-13 23:04 
AnswerRe: sdk Pin
Pete O'Hanlon28-Feb-13 23:24
mvePete O'Hanlon28-Feb-13 23:24 
AnswerRe: sdk Pin
Dave Kreskowiak1-Mar-13 2:21
mveDave Kreskowiak1-Mar-13 2:21 
QuestionIssue using the StreamWritter Class Pin
TwiztedFreek28-Feb-13 13:16
TwiztedFreek28-Feb-13 13: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 13:18
TwiztedFreek28-Feb-13 13:18 
AnswerRe: Issue using the StreamWritter Class Pin
Garth J Lancaster28-Feb-13 14:08
professionalGarth J Lancaster28-Feb-13 14:08 
AnswerRe: Issue using the StreamWritter Class Pin
Jegan Thiyagesan28-Feb-13 23:33
Jegan Thiyagesan28-Feb-13 23:33 
AnswerRe: Issue using the StreamWritter Class Pin
Keith Barrow1-Mar-13 1:06
professionalKeith Barrow1-Mar-13 1:06 
AnswerRe: Issue using the StreamWritter Class Pin
Defens931-Mar-13 9:35
Defens931-Mar-13 9:35 
QuestionCopy username from text file to website Pin
Muhammad Sayyam28-Feb-13 2:17
Muhammad Sayyam28-Feb-13 2:17 
AnswerRe: Copy username from text file to website Pin
DaveyM6928-Feb-13 3:07
professionalDaveyM6928-Feb-13 3:07 
GeneralRe: Copy username from text file to website Pin
Richard MacCutchan28-Feb-13 3:23
mveRichard MacCutchan28-Feb-13 3:23 
GeneralRe: Copy username from text file to website Pin
DaveyM6928-Feb-13 10:30
professionalDaveyM6928-Feb-13 10:30 
GeneralRe: Copy username from text file to website Pin
Muhammad Sayyam2-Mar-13 20:19
Muhammad Sayyam2-Mar-13 20:19 
GeneralRe: Copy username from text file to website Pin
DaveyM695-Mar-13 3:08
professionalDaveyM695-Mar-13 3:08 
GeneralRe: Copy username from text file to website Pin
DaveyM697-Mar-13 21:51
professionalDaveyM697-Mar-13 21:51 
Questiontooth numbers Pin
Jassim Rahma28-Feb-13 0:35
Jassim Rahma28-Feb-13 0:35 
AnswerRe: tooth numbers PinPopular
Pete O'Hanlon28-Feb-13 1:11
mvePete O'Hanlon28-Feb-13 1:11 
AnswerRe: tooth numbers Pin
GuyThiebaut28-Feb-13 2:03
professionalGuyThiebaut28-Feb-13 2:03 
QuestionVS2012, C# Office 2007 problem Pin
Daytona67527-Feb-13 9:34
Daytona67527-Feb-13 9:34 
AnswerRe: VS2012, C# Office 2007 problem Pin
Richard MacCutchan27-Feb-13 21:58
mveRichard MacCutchan27-Feb-13 21: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.