Re: [DOTNET] Reading a File

2002-04-12 Thread Nischal Chitta
Hi Thanks for the feedback. The spaces in the string are intended and my format. So I am sure they are spaces. And moreover this code returned me overflow exception for(int i=1;ihttp://discuss.develop.com.

Re: [DOTNET] Reading a File

2002-04-12 Thread Stuart Celarier
The problem really sounds like Unicode character string being treated as if it were an ANSI string. Just removing the spaces (actually, probably a NUL character, '\0') is not going to be very satisfying, as it will break the moment a Unicode character comes along that doesn't map directly to an AN

Re: [DOTNET] Reading a File

2002-04-12 Thread Jim Stanton
Try your loop as for(int i=1;imailto:[EMAIL PROTECTED]]On Behalf Of Nischal Chitta Sent: Friday, April 12, 2002 3:27 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Reading a File This happens quite often. You post a question, then everything seems to work your way. Following is something I

Re: [DOTNET] Reading a File

2002-04-12 Thread Steve Johnson
Just curious, did you design this format, such that you know that those are indeed spaces between the chars? Or, is this unicode text with nulls showing as spaces in an ascii editor? If it is unicode, you can read it with a TextReader set to Encoding.Unicode. -- Steve Johnson 3t Systems You ca

Re: [DOTNET] Reading a File

2002-04-12 Thread Nischal Chitta
This happens quite often. You post a question, then everything seems to work your way. Following is something I did to achieve it with a small hiccup. Can someone let me know how I can get a character array to be built as a string. In essence FileStream fs = new FileStream("C:\\First.txt",FileMo

Re: [DOTNET] Reading a File

2002-04-12 Thread franklin gray
il 12, 2002 1:35 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Reading a File Hi All This might be a very easy question for you guys. I am newbie so please excuse me. I have a .txt file which contains characters like the following: N I S C H A LB I L L G A T E S S T E V E B A L M E R Note

[DOTNET] Reading a File

2002-04-12 Thread Nischal Chitta
Hi All This might be a very easy question for you guys. I am newbie so please excuse me. I have a .txt file which contains characters like the following: N I S C H A LB I L L G A T E S S T E V E B A L M E R Note each space between each letter of each word and later 4 spaces between each w