Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
The SpecialDirectories object can be used to read from many of the All Users directories, such as My Documents or Desktop.
To read from the My Documents folder
Use the
ReadAllTextmethod to read the text from each file in a specific directory. The following code specifies a directory and file and then usesReadAllTextto read them into the string namedpatients.Dim path As String Dim patients As String path = My.Computer.FileSystem.SpecialDirectories.MyDocuments & "\" & "Patients.txt" patients = My.Computer.FileSystem.ReadAllText(path)
See also
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.