Text manipulation

flynn

Regular
Joined
Jul 28, 2005
Messages
59
I am doing a lot of text manipulation and reading of text files.

Example:
Code:
Dim sb As System.Text.StringBuilder

' this line gives an error since ReadAllText returns a STRING
sb = My.Computer.FileSystem.ReadAllText("c:\data\file1.txt")

Is there a function similar to ReadAllText that will return a Stringbuilder? Or can I convert the return value to a Stringbuilder efficiently?

tia,
flynn
 
Visual Basic:
Dim sb As new System.Text.StringBuilder

' this line gives an error since ReadAllText returns a STRING
sb.Append(My.Computer.FileSystem.ReadAllText("c:\data\file1.txt"))
 
Back
Top