Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need idea for a neural network... Pin
tom_dx30-Oct-04 11:17
tom_dx30-Oct-04 11:17 
GeneralRe: Need idea for a neural network... Pin
yoaz31-Oct-04 2:14
yoaz31-Oct-04 2:14 
QuestionHow to get a string's encoding Pin
Matt Gerrans30-Oct-04 9:52
Matt Gerrans30-Oct-04 9:52 
AnswerRe: How to get a string's encoding Pin
Heath Stewart31-Oct-04 9:21
protectorHeath Stewart31-Oct-04 9:21 
GeneralRe: How to get a string's encoding Pin
Matt Gerrans1-Nov-04 5:01
Matt Gerrans1-Nov-04 5:01 
GeneralRe: How to get a string's encoding Pin
Heath Stewart1-Nov-04 5:30
protectorHeath Stewart1-Nov-04 5:30 
GeneralRe: How to get a string's encoding Pin
Matt Gerrans1-Nov-04 11:23
Matt Gerrans1-Nov-04 11:23 
GeneralRe: How to get a string's encoding Pin
Heath Stewart1-Nov-04 11:37
protectorHeath Stewart1-Nov-04 11:37 
You should use StreamReader reader = info.OpenText();. If you look at the IL, the code for opening a StreamReader from a stream vs. a filename is the same. The constructor which takes a string actually does the same thing you are - opens a FileStream and passes it to Init (an internal method which every constructor eventually calls).

As for your original question, see the StringInfo class defined in the System.Globalization namespace. This allows you to enumerate characters (derived from however many code points), which you could then determine if a string contains one character or more.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralCollection Class's Pin
MrJJKoolJ30-Oct-04 5:24
MrJJKoolJ30-Oct-04 5:24 
GeneralRe: Collection Class's Pin
Colin Angus Mackay31-Oct-04 1:58
Colin Angus Mackay31-Oct-04 1:58 
QuestionHow can i change the Form title bar color Pin
Zapss29-Oct-04 23:56
Zapss29-Oct-04 23:56 
AnswerRe: How can i change the Form title bar color Pin
Heath Stewart30-Oct-04 3:04
protectorHeath Stewart30-Oct-04 3:04 
GeneralUnload Pin
Anonymous29-Oct-04 23:05
Anonymous29-Oct-04 23:05 
GeneralRe: Unload Pin
Stefan Troschuetz30-Oct-04 0:15
Stefan Troschuetz30-Oct-04 0:15 
GeneralRe: Unload Pin
Heath Stewart30-Oct-04 3:19
protectorHeath Stewart30-Oct-04 3:19 
GeneralRe: Unload Pin
Heath Stewart30-Oct-04 3:25
protectorHeath Stewart30-Oct-04 3:25 
Generalconnection through proxy server Pin
Kamran Zafar29-Oct-04 22:35
Kamran Zafar29-Oct-04 22:35 
GeneralRe: connection through proxy server Pin
Heath Stewart30-Oct-04 4:01
protectorHeath Stewart30-Oct-04 4:01 
GeneralMdiWindowListItem in C# express beta Pin
benjymous29-Oct-04 21:04
benjymous29-Oct-04 21:04 
GeneralRe: MdiWindowListItem in C# express beta Pin
Heath Stewart30-Oct-04 3:51
protectorHeath Stewart30-Oct-04 3:51 
GeneralRe: MdiWindowListItem in C# express beta Pin
benjymous30-Oct-04 23:08
benjymous30-Oct-04 23:08 
GeneralRe: MdiWindowListItem in C# express beta Pin
Heath Stewart31-Oct-04 9:19
protectorHeath Stewart31-Oct-04 9:19 
GeneralStrange compile error Pin
steve_rm29-Oct-04 20:14
steve_rm29-Oct-04 20:14 
GeneralRe: Strange compile error Pin
Heath Stewart30-Oct-04 3:47
protectorHeath Stewart30-Oct-04 3:47 
Generalprocess.start problem Pin
Karl 200029-Oct-04 19:50
Karl 200029-Oct-04 19:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.