Click here to Skip to main content
15,886,137 members
Articles / Programming Languages / C#

How to separate characters of a word in c# windows form app?

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
28 Mar 2013CPOL 0  
1) Use Directory.GetFiles[^]. See: http://www.csharp-examples.net/get-files-from-directory/[^]2) Use Substring[^] method. See: http://www.dotnetperls.com/substring[^]

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
28 Mar 2013annex45
Linq should be recognized, update your VS' also:make sure you have written in that specific class "using System.Linq;"
Please Sign up or sign in to vote.
29 Mar 2013bunzitop
yes substring is the best way to get the name of file
Please Sign up or sign in to vote.
28 Mar 2013mdhrchi 3 alternatives  
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...

License

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


Written By
Technical Lead
Hungary Hungary
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions