Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[C#] ReadLine ab bestimmter Zeile?

Empfohlene Antworten

Tach erstmal.

Ich hab folgendes problem: ich hab eine Textdatei, die ich ab einer bestimmten zeile einlesen muss. (Zeilenweise). nun hab ich schon rumprobiert, bin aber nicht auf eine lösung gekommen. ich benutze Visual C# Studio Express Edition

Danke im Voraus.

for (int i = 0; i < zuSkippendeZeilen; i++) {

    meinezuskippendeZeile = Reader.Readline()

}

gewuenschteZeile = Reader.Readline()

oder hab ich da logisch was nicht verstanden?

s'Amstel

danke, ich denke das müsste klappen, doch jetzt hab ich ein weiteres problem. und zwar das zeichenweise einlesen von dem text.

wenn ich das so mache:

char[] c = null;

                    c = new char[20];

                    bckReader.Read(c, 0, 15);


                    MessageBox.Show(c.ToString());

bekomme ich als ausgabe " System.Char[] "

ich kann mir das aber nicht erklären, zumal ich das eigentlich so gemacht hab wie es auf der msdn steht... vielleicht kann mir ja jemand helfen. oder mir nen tipp geben.

danke im voraus

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.