Click here to Skip to main content
15,886,566 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am using windows application in c#.net.
Posted
Comments
dharam1 23-Jun-14 11:04am    
Pls provide some more information.
E.F. Nijboer 23-Jun-14 11:04am    
Your question is unclear. Please explain your problem with more details.
[no name] 23-Jun-14 11:08am    
File.Exists(path to your file);
Have you considered the possibility of getting a decent book on programming and working through it instead of trying to learn programming one vague question at a time?
Sergey Alexandrovich Kryukov 23-Jun-14 11:53am    
What is "embedded file"? Embedded where? If it is embedded, how can it possibly not exist?
—SA
Pankaj Mahor 23-Jun-14 13:30pm    
my embedded file path is like myapp.file.txt. How to use it with file.exists()?

1 solution

C#
if (File.Exists(path))
   {
   ...
   }
Works for me...
 
Share this answer
 
Comments
Pankaj Mahor 23-Jun-14 13:28pm    
But my embedded file path is like myapp.file.txt. How to use it with file.exists()?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900