Click here to Skip to main content
15,909,530 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compiler Question (csc.exe) Pin
Saul Johnson3-Jul-08 10:27
Saul Johnson3-Jul-08 10:27 
GeneralRe: Compiler Question (csc.exe) Pin
Paul Conrad3-Jul-08 10:09
professionalPaul Conrad3-Jul-08 10:09 
Question"Convert To Application" IIS 7 Pin
luisnike193-Jul-08 8:31
luisnike193-Jul-08 8:31 
AnswerRe: "Convert To Application" IIS 7 Pin
Paul Conrad3-Jul-08 8:58
professionalPaul Conrad3-Jul-08 8:58 
GeneralRe: "Convert To Application" IIS 7 Pin
luisnike193-Jul-08 9:40
luisnike193-Jul-08 9:40 
QuestionChange FtpWebRequest's remote path Pin
longzu19843-Jul-08 7:16
longzu19843-Jul-08 7:16 
AnswerRe: Change FtpWebRequest's remote path Pin
Michael90003-Jul-08 10:54
Michael90003-Jul-08 10:54 
QuestionC# Converting socket communitation ( byte[] ) to string Pin
nyjcr3-Jul-08 6:59
nyjcr3-Jul-08 6:59 
Hi,
Sorry if this is a simple question, I'm learning c# and I'm trying to send
a string to another computer, but when I receive the string I want to store that string in an xml file

the problem is that the string comes with "empty" characters at the end.
so my xml looks like "abc.........) follow by many empty chars.

here is the code I'm using to get the data. using tcp sockets

Byte[] received = new Byte[256];
int bytesReceived = server1Tcp.Receive(input, input.Length, 0);
dataReceived = System.Text.Encoding.ASCII.GetString(input);


How can I save the "dataReceived" string without the empty chars.

again, thank you to all of you who have helped me learn C#

-JC
AnswerRe: C# Converting socket communitation ( byte[] ) to string Pin
Michael90003-Jul-08 7:21
Michael90003-Jul-08 7:21 
AnswerRe: C# Converting socket communitation ( byte[] ) to string Pin
hammerstein053-Jul-08 7:21
hammerstein053-Jul-08 7:21 
AnswerRe: C# Converting socket communitation ( byte[] ) to string Pin
Anthony Mushrow3-Jul-08 9:07
professionalAnthony Mushrow3-Jul-08 9:07 
AnswerRe: C# Converting socket communitation ( byte[] ) to string Pin
Guffa3-Jul-08 12:43
Guffa3-Jul-08 12:43 
Questionconfirmed file creation Pin
netJP12L3-Jul-08 6:23
netJP12L3-Jul-08 6:23 
AnswerRe: confirmed file creation Pin
Christian Graus3-Jul-08 7:33
protectorChristian Graus3-Jul-08 7:33 
GeneralRe: confirmed file creation Pin
User 66583-Jul-08 7:41
User 66583-Jul-08 7:41 
AnswerRe: confirmed file creation Pin
Michael90003-Jul-08 7:41
Michael90003-Jul-08 7:41 
QuestionAuto updateing applcation. Pin
Simon P Stevens3-Jul-08 5:16
Simon P Stevens3-Jul-08 5:16 
AnswerRe: Auto updateing applcation. Pin
half-life3-Jul-08 6:12
half-life3-Jul-08 6:12 
GeneralRe: Auto updateing applcation. Pin
Simon P Stevens3-Jul-08 21:39
Simon P Stevens3-Jul-08 21:39 
AnswerRe: Auto updateing applcation. Pin
led mike3-Jul-08 6:35
led mike3-Jul-08 6:35 
GeneralRe: Auto updateing applcation. Pin
Simon P Stevens3-Jul-08 22:10
Simon P Stevens3-Jul-08 22:10 
GeneralRe: Auto updateing applcation. Pin
led mike7-Jul-08 10:58
led mike7-Jul-08 10:58 
QuestionChanging columns during update when using virtual listview Pin
Hampus@foi3-Jul-08 4:55
Hampus@foi3-Jul-08 4:55 
QuestionC# working with Sapces in registry Keys Pin
Planker3-Jul-08 4:47
Planker3-Jul-08 4:47 
AnswerRe: C# working with Sapces in registry Keys Pin
User 66583-Jul-08 4:55
User 66583-Jul-08 4:55 

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.