N
Neven Klofuar
hi,
I have a problem when trying to delete a file.
I have to extract some information from a file, and then I have to delete
it. When I try to delete it after I read it, I get a "Access denied" error.
help pls, Neven
********************************
StreamReader sr = new StreamReader(sFolderArhiva + sShortFileName);
while ((sLine = sr.ReadLine()) != null) {
try {
if (sLine.Substring(0, "ApplicationItem=".Length) ==
"ApplicationItem=") {
docType =
DohvatiTipDokumenta_TipDokumenta(sLine.Substring("ApplicationItem=".Length));
}
} catch (){}
try {
if (sLine.Substring(0, "ApplicationTag=".Length) ==
"ApplicationTag=") {
ID = sLine.Substring("ApplicationTag=".Length);
}
} catch {}
}
sr.Close();
sr.Dispose();
I have a problem when trying to delete a file.
I have to extract some information from a file, and then I have to delete
it. When I try to delete it after I read it, I get a "Access denied" error.
help pls, Neven
********************************
StreamReader sr = new StreamReader(sFolderArhiva + sShortFileName);
while ((sLine = sr.ReadLine()) != null) {
try {
if (sLine.Substring(0, "ApplicationItem=".Length) ==
"ApplicationItem=") {
docType =
DohvatiTipDokumenta_TipDokumenta(sLine.Substring("ApplicationItem=".Length));
}
} catch (){}
try {
if (sLine.Substring(0, "ApplicationTag=".Length) ==
"ApplicationTag=") {
ID = sLine.Substring("ApplicationTag=".Length);
}
} catch {}
}
sr.Close();
sr.Dispose();