Click here to Skip to main content
15,884,751 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i save a file path to an object in C#, while using Visual Studio 2010 ?
Posted
Updated 27-Apr-12 0:26am
v2
Comments
OriginalGriff 26-Apr-12 3:08am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
lukeer 27-Apr-12 6:37am    
It's not clear from your question, what you're trying to achieve.

Do you want to search within a pdf document?
Do you want to search for a pdf document?
Do you want to save a file onto your harddisk?

Besides you should mention what technology you use (ASP, Silverlight, Windows Forms, WPF, ...).
Sheibi 28-Apr-12 3:26am    
I am using C# and try to make a automated quiz builder in which software will pick the pdf or doc file from user and generate a quiz.
In this project i want to save that file to a specified folder or save file directory to database. to implement algorithm's on the data of that file.
Now what you say ?????


Regards
Shoaib Farooq

1 solution

You van extract the path of a file using Path.GetDirectoryName
http://msdn.microsoft.com/en-us/library/system.io.path.getdirectoryname.aspx[^]

Good luck!
 
Share this answer
 

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