flynn Posted March 3, 2006 Posted March 3, 2006 I am doing a lot of text manipulation and reading of text files. Example: 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 Quote
Administrators PlausiblyDamp Posted March 3, 2006 Administrators Posted March 3, 2006 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")) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.