P
Patrick De Ridder
I have a coding problem, modelled by the trial code below
I don't understand the error, however elementary this is.
Pleases assist,
Patrick.
try
{
FileStream stream1 = new
FileStream(@"c:\trial\trial.006",FileMode.OpenOrCreate,FileAccess.Read) ;
stream1.Close();
}
catch
{
Directory.CreateDirectory(@"c:\trial");
/////////////////////// I get an error in the next
line//////////////////////////
FileStream stream = new
FileStream(@"c:\trial\trial.006",FileMode.Create,FileAccess.Write) ;
stream.Close();
}
I don't understand the error, however elementary this is.
Pleases assist,
Patrick.
try
{
FileStream stream1 = new
FileStream(@"c:\trial\trial.006",FileMode.OpenOrCreate,FileAccess.Read) ;
stream1.Close();
}
catch
{
Directory.CreateDirectory(@"c:\trial");
/////////////////////// I get an error in the next
line//////////////////////////
FileStream stream = new
FileStream(@"c:\trial\trial.006",FileMode.Create,FileAccess.Write) ;
stream.Close();
}