Your technology certification is waiting. Enroll in Cloud Class ®
Dim MyContents = File.ReadAllLines("Pathetofile")
Open in new window
This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.
Dim fileContents As String
Using reader As New StreamReader("filename.txt")
fileContents = reader.ReadToEnd()
fileContents = String.Concat(fileContents, "Some new text to add")
Using writer As New StreamWriter("filename.txt", False)
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.