Not Opening File
-
Hi, I have a Temp Folder in my solution and i copied one file into Temp Folder, i need to open copied file through code. I tried with File.Open(),but it is not opening file. Please suggest me better way to do this. Regards Vishnu
-
Hi, I have a Temp Folder in my solution and i copied one file into Temp Folder, i need to open copied file through code. I tried with File.Open(),but it is not opening file. Please suggest me better way to do this. Regards Vishnu
string content = System.IO.File.ReadAllText("myFile.txt"); --------------- www.serverside.no
-
Hi, I have a Temp Folder in my solution and i copied one file into Temp Folder, i need to open copied file through code. I tried with File.Open(),but it is not opening file. Please suggest me better way to do this. Regards Vishnu
vishnukamath wrote:
I tried with File.Open(),but it is not opening file.
Are there any exceptions? Showing what you have done may help us to point out problems/solutions.
I know the language. I've read a book. - _Madmatt
-
Hi, I have a Temp Folder in my solution and i copied one file into Temp Folder, i need to open copied file through code. I tried with File.Open(),but it is not opening file. Please suggest me better way to do this. Regards Vishnu
What is the meaning of "Open" file? You want to open it reader or you want to execute file? (suppose i have a word document and you want to open it with Microsoft Word or in memory)
sunaSaRa Imdadhusen +91 99095 44184 +91 02767 284464
-
Hi, I have a Temp Folder in my solution and i copied one file into Temp Folder, i need to open copied file through code. I tried with File.Open(),but it is not opening file. Please suggest me better way to do this. Regards Vishnu
If it is a ASPNET based solution (a website), you will need proper permissions to access temp folder. Check the app pool for your web site and identity/logon-user under which app pool is running. Make sure the identity has rights to access temp folder and files under that folder.