Wrox Programmer Forums
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 16th, 2006, 03:30 AM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help Please

Hi, i am working on a program to read a data file that contains a flie location to another folder. The program will read this file and extract the data from the file and the location to the folder. My question is how am i suppose to write if out in C#? Any suggestion will be helpful.


Thanks
Keith Koh

 
Old May 22nd, 2006, 07:14 AM
Registered User
 
Join Date: May 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

StreamWriter sw = new StreamWriter(fileName, true);
sw.Write(someString);
sw.Close();


true flag is for append,











Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.