Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best method to strip the CRLF in C#
Message
De
30/04/2007 11:17:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Best method to strip the CRLF in C#
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01221137
Message ID:
01221137
Vues:
71
Hi folks,

I am working with a serial port object and receive a line feed and carriage return as the ending on each incoming data stream. I would like to strip these off each time before passing the string on. What is the most appropriate method to do this? string.substring(), string.trim(), or something else?
Thanks
Tim
Timothy Bryan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform