Advertisement
ASP_Volume3 String Manipulation #48558

ReadFile

Read an entire text file into a string in one call.

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
Public Function ReadFile(ByVal sFileName As String) As String
  Dim fhFile As Integer
  fhFile = FreeFile
  Open sFileName For Binary As #fhFile
  ReadFile = Input$(LOF(fhFile), fhFile)
  Close #fhFile
End Function

Upload
Původní komentáře (3)
Obnoveno z Wayback Machine