Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
please help me to append one file's content to an existing one
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
meettapan
New Member
Join Date:
Jun 2007
Posts:
9
#1
please help me to append one file's content to an existing one
Sep 4 '07, 06:17 AM
Any one please help me to Append the content of file2 to the existing
file1 in c#
with regards
Tapan
blackjack2150
New Member
Join Date:
Feb 2007
Posts:
79
#2
Sep 4 '07, 07:49 AM
If file1.txt exists already:
StreamWriter sw = new StreamWriter("f ile1.txt",
true
);
sw.write("some text here");
or, even easier, but significantly slower:
File.AppendAllT ext("file1.txt" , "some text here");
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment