|
-
Mar 16th, 2007, 06:22 PM
#6
Hyperactive Member
Re: Append text at a certain row in a txt-file
FileStream stmRecords = new FileStream(@"C:\Scanned.txt", FileMode.Append, FileAccess.Write, FileShare.None);
StreamWriter stmWriter = new StreamWriter(stmRecords);
stmWriter.WriteLine(var1 + " , " + var2);
stmWriter.Flush();
stmWriter.Close();
tnx for ur reply but this is what i searched. it's kinda easy to understand.
except the stmWriter.Flush(); i don't jknow its function.
but if someone has the same problem above code will do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|