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.

carriage return line feed [0D0A(h)] am Ende einer Datei entfernen

Empfohlene Antworten

Hi

folgendes Problem:

Ich schreibe mit 'Print #1, text' einen String in eine Datei. Der String endet mit Leerzeichen, aber im Hex-Editor sieht man, dass da noch ein Zeilenumbruch mit drin steht (0D0A). Der String endet aber definitiv mit einem Leerzeichen.

Baut die 'print' da noch was mit ein? bzw wie könnte ich generell den Zeilenumbruch aus der Datei bekommen?

Hat jemand eine Idee?

Gruß

moses

typisch VB, würde man sagen :D

FileNum = FreeFile

Open "C:\Hosts" For Output As #FileNum

Print #FileNum, Text1.Text

Close #FileNum


54 65 78 74 31 [COLOR="SeaGreen"]0d 0a [/COLOR]00 


Print #FileNum, Text1.Text[COLOR="SeaGreen"][B];[/B][/COLOR]


54 65 78 74 31 00

der strichpunkt am parameterende von "Print" machts :)

s'Amstel

Suubba!

Es ist weg! :eek

Danke für die Hilfe

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.