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.

Datei einlesen unter VB

Empfohlene Antworten

Veröffentlicht

Hi Leute

Komme irgendwie nicht so ganz weiter.

Möchte eine Datei z.B. autoexec.bat einlesen, bis dahin kein Problem. Nur wie krieg ich den Ramsch in meine Textbox übergeben?

Meine Source siehst bis Dato so aus.

Dim datei As String

datei = "c:\autoexec.bat" 'von festplatte lesen

Open datei For Input As #1

XXXXXXXXX und hier fängt mein Problem an :confused:

Ich Danke schon mal im vorraus

Gruß BB

Probiers mal hiermit:


Open "Dateipfad" For Input As #1

'solange das Dateiende erreicht

Do Until EOF(1)

    'einlesen der Daten in eine Variable namens liste

     Input #1, liste 

Loop

Close #1

  

;)

Hi Leute

Habe meinen Unwissenheit schon bekämpft.

Danke euch allen. (Natürlich auch an Jougli)

Gruss

Bunter-baron

Ähm Halt, ich hab das Problem auch, nur ich will eine String-Variable als ASCII speichern und dann auch wieder auslesen, das geht mit der Schleife nicht.

so sieht das Speichern bei mir aus, das funst aber nicht:

Open "C:\Test.dat" For Input As #1

Write #1, variable(string)

Close #1

und so das Auslesen, das funst auch nicht:

Open "C:\Test.dat" For Output As #1

Get #1, , variable

Kann mir einer helfen???

Hi Stop,

wenn du in eine Datei schreiben willst mußt Du sie "Output" eröffnen und "Input" wenn Du daraus was einlesen willst. Scheint so als hättest Du das genau vertauscht.

Bye

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.