Click here to Skip to main content
15,890,438 members

Comments by labshasanbd (Top 5 by date)

labshasanbd 5-May-15 14:11pm View    
Ok, but what are key topics to document for High Level Design?
labshasanbd 18-Jun-13 14:03pm View    
where is the downloadable file, which may fix the issue.
labshasanbd 19-Dec-11 7:04am View    
Used .Close and also .Dispose. But no good result. What i am doing is
fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
then
xmlDocument.Load(fs);
then
after few changes in xmlDocument and it's attributes and nodes i am creating another filestream like:
fstemp = new FileStream(pathtemp, FileMode.Create);
xmlDocument.Save(fstemp);
then
fstemp.Close();
fstemp.Dispose();
fstemp = null;

fs.Close();
fs.Dispose();
fs = null;

try
{
File.Copy(pathtemp, path, true);
}
catch (Exception ex)
{

}
Here Copy is generating the error::::)
labshasanbd 19-Dec-11 7:04am View    
Used .Close and also .Dispose. But no good result. What i am doing is
fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
then
xmlDocument.Load(fs);
then
after few changes in xmlDocument and it's attributes and nodes i am creating another filestream like:
fstemp = new FileStream(pathtemp, FileMode.Create);
xmlDocument.Save(fstemp);
then
fstemp.Close();
fstemp.Dispose();
fstemp = null;

fs.Close();
fs.Dispose();
fs = null;

try
{
File.Copy(pathtemp, path, true);
}
catch (Exception ex)
{

}
Here Copy is generating the error::::)
labshasanbd 17-Dec-11 5:39am View    
There are many users "My Documents" folders in my PC. When i am trying to execute File.Exists(filename) it returns false though it presents there for that user. Can i make a decision from here, that it's not editable/accessible?