You can use File.AppendAllText
for that:
File.AppendAllText(@"c:\path\file.txt", "text content" + Environment.NewLine);
More Related Contents:
- How to download a file from a URL in C#?
- Free file locked by new Bitmap(filePath)
- How to find the most recent file in a directory using .NET, and without looping?
- How to compare 2 files fast using .NET?
- Accessing Password Protected Network Drives in Windows in C#?
- How to detect a USB drive has been plugged in?
- C# – Get a list of files excluding those that are hidden
- In C# check that filename is *possibly* valid (not that it exists) [duplicate]
- How to find the extension of a file in C#?
- Should I store my images in the database or folders? [duplicate]
- Read last line of text file
- Encode a FileStream to base64 with c#
- Retrieving files from directory that contains large amount of files
- Can I simply ‘read’ a file that is in use?
- How to insert characters to a file using C#
- WPF/C#: Where should I be saving user preferences files?
- Writing file to web server – ASP.NET
- ReadAllLines for a Stream object?
- How to get the actual (localized) folder names? [duplicate]
- How do I get the directory from a file’s full path?
- Sending Files using HTTP POST in c# [closed]
- Getting files by creation date in .NET
- How do I detect when a directory or file changes without constant scanning
- Image file copy, is being used by another process
- 2d Array from text file c# [closed]
- Delete files older than 3 months old in a directory using .NET
- Read numbers from a text file in C#
- TransactionScope With Files In C# [duplicate]
- C# Searching for files and folders except in certain folders
- Check last modified date of file in C#