in etwa so: (Siehe code unten)
Der Regex ... da bin ich mir nicht ganz sicher .... da musst in der Doku nachsehen.
Gru� Mansur
>
> Hallo Leute
>
> Ich versuch mich mit C# und habe nun folgendes:
>
> static void Main(string[] args)
> {
> //
> // TODO: Add code to start application here
> //
Regex rexStripNoAscII = new Regex("\W");
> try
> {
> using (StreamReader sr = new
> StreamReader("C:\\hh.txt"))
> {
> String line;
> while ((line = sr.ReadLine(()) !=
> null)
> {
>
> Console.WriteLine(rexStripNoAscII.Replace(line, ""));
> }
> }
> }
> catch (Exception e)
> {
> // Let the user know what went wrong.
> Console.WriteLine("The file could not be
> read:");
> Console.WriteLine(e.Message);
> }
>
> }
>
> Was ich nun br�uchte w�r eine Funktion die mir aus der jeweiligen Line alle
> nonascii Zeichen rauswirft. gibts sowas in .net oder muss ich das selbst
> machen.
>
> mfg
>
> HH
> _______________________________________________
> CSharp.net Mailingliste, Postings senden an:
> [EMAIL PROTECTED]
> An-/Abmeldung und Suchfunktion unter:
> http://www.glengamoi.com/mailman/listinfo/csharp.net
_______________________________________________
CSharp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/csharp.net