TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Justin N
NA
19
0
Need help with IOException
Jan 10 2010 4:26 AM
how do i stop this from throwing an IOException?
namespace BrowseFileSystem
{
class Program
{
static void Main(string[] args)
{
string input = Console.ReadLine();
MemoryStream ms = new MemoryStream();
StreamWriter sw = new StreamWriter(ms);
sw.Write(input);
ms.WriteTo(File.Create(@"f:\textfile2.txt"));
sw.Close();
ms.Close();
//while (true)
//{
// try
// {
StreamReader sr = new StreamReader(@"f:\textfile2.txt");
Console.WriteLine(sr.ReadToEnd());
// }
// catch (Exception) { }
//}
}
}
}
Reply
Answers (
4
)
Read XML document Like LN1, FN1, L1, P1 HELP!!!!!!!!!! SEE XML FILE
Connection control