Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 questions:

1 I want to get all file's name in a folder.How can I do this?
2 How can I separate first 8 characters of a word?

I wanna make a c# windows form app that is able to get a folder address and separate the pictures that their name is equal(first 8 characters show the date they had taken)
I search the web and I found a solution but it doesn't work that is using the "system.linq" class.visual studio doesn't recognize this class!
Thanks
Posted
Comments
Zoltán Zörgő 29-Mar-13 3:24am    
Paste your code here - the numbered questions have little to do with linq...

 
Share this answer
 
v2
Linq should be recognized, update your VS' also:
make sure you have written in that specific class "using System.Linq;"
 
Share this answer
 
yes substring is the best way to get the name of file
 
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