Click here to Skip to main content
15,914,381 members
Home / Discussions / C#
   

C#

 
GeneralRe: Validate emailaddress Pin
Mycroft Holmes6-May-09 1:15
professionalMycroft Holmes6-May-09 1:15 
GeneralRe: Validate emailaddress Pin
MumbleB6-May-09 2:03
MumbleB6-May-09 2:03 
GeneralRe: Validate emailaddress Pin
Pete O'Hanlon6-May-09 2:32
mvePete O'Hanlon6-May-09 2:32 
QuestionData gridview Pin
hitesh.kalra5-May-09 23:53
hitesh.kalra5-May-09 23:53 
AnswerRe: Data gridview Pin
Vimalsoft(Pty) Ltd6-May-09 0:24
professionalVimalsoft(Pty) Ltd6-May-09 0:24 
GeneralRe: Data gridview Pin
hitesh.kalra6-May-09 0:32
hitesh.kalra6-May-09 0:32 
GeneralRe: Data gridview Pin
Vimalsoft(Pty) Ltd6-May-09 0:58
professionalVimalsoft(Pty) Ltd6-May-09 0:58 
QuestionCrystal report Pin
hitesh.kalra5-May-09 23:45
hitesh.kalra5-May-09 23:45 
AnswerRe: Crystal report Pin
Sun Rays5-May-09 23:53
Sun Rays5-May-09 23:53 
GeneralRe: Crystal report Pin
hitesh.kalra5-May-09 23:56
hitesh.kalra5-May-09 23:56 
GeneralRe: Crystal report Pin
Sun Rays6-May-09 0:01
Sun Rays6-May-09 0:01 
GeneralRe: Crystal report Pin
hitesh.kalra6-May-09 0:03
hitesh.kalra6-May-09 0:03 
GeneralRe: Crystal report Pin
Sun Rays6-May-09 0:28
Sun Rays6-May-09 0:28 
Questioncmd.exe standardinput problem, please help?!?! Pin
Druuler5-May-09 23:41
Druuler5-May-09 23:41 
AnswerRe: cmd.exe standardinput problem, please help?!?! Pin
12Code6-May-09 0:25
12Code6-May-09 0:25 
GeneralRe: cmd.exe standardinput problem, please help?!?! Pin
Druuler6-May-09 0:31
Druuler6-May-09 0:31 
GeneralRe: cmd.exe standardinput problem, please help?!?! Pin
12Code6-May-09 0:45
12Code6-May-09 0:45 
GeneralRe: cmd.exe standardinput problem, please help?!?! Pin
Druuler6-May-09 1:18
Druuler6-May-09 1:18 
QuestionExtended Ascii charaters are not written in the text file.... Pin
King Julien5-May-09 23:37
King Julien5-May-09 23:37 
Hi all,

I am trying to convert a byte array in to a character array and trying to write the character array in a text file...
The character set till 127 is propetly written.. whereas all the characters which is above 127 is modified as '?' i.e ascii number 63.....
How can i write this to the text file...

the code snippet..

Byte[] encryptedData = myrsa.Encrypt(newdata, false);
Char[] asciiarray = encoding.GetChars(encryptedData);
 FileStream fs = File.Open(FilePath,filemode,FileAccess.Write);
   sw = new StreamWriter(fs, Encoding.ASCII );
   sw.WriteLine(new string (asciiarray));
   sw.Close();


The above code writes only ascii characters whose values are less than 127 whereas all other characters are automatically changed to '?'

Googled, but no fruits......

Have a Happy Coding.....

AnswerRe: Extended Ascii charaters are not written in the text file.... Pin
OriginalGriff5-May-09 23:50
mveOriginalGriff5-May-09 23:50 
GeneralRe: Extended Ascii charaters are not written in the text file.... Pin
King Julien6-May-09 0:22
King Julien6-May-09 0:22 
GeneralRe: Extended Ascii charaters are not written in the text file.... Pin
OriginalGriff6-May-09 0:41
mveOriginalGriff6-May-09 0:41 
AnswerRe: Extended Ascii charaters are not written in the text file.... Pin
Guffa6-May-09 4:18
Guffa6-May-09 4:18 
GeneralRe: Extended Ascii charaters are not written in the text file.... Pin
King Julien6-May-09 4:37
King Julien6-May-09 4:37 
QuestionMouseDown Event? [modified] Pin
Megidolaon5-May-09 23:25
Megidolaon5-May-09 23:25 

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.