[FIXED] Dateigröße in VB.NET ermitteln

Ausgabe

Wie bestimme ich die Größe einer Textdatei?

Ich weiß, dass ich nur Zeichen zählen könnte, aber die Datei wird mehrere MB groß sein.

Lösung

Dim myFile As New FileInfo("file.txt")
Dim sizeInBytes As Long = myFile.Length


Beantwortet von –
Dennis Traub


Antwort geprüft von –
Timothy Miller (FixError Admin)

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like