Rev. Jim / Minimalist, I'm attempting to convert the code to VB.net. I've got it to write something but it's writing only one line. I'm sure I need to use "Using" or some kind of loop for it to read and write each line. Here's what I've got so far:
My.Computer.FileSystem.ReadAllText(RestranName)
' This begins to add the carriage returns in the appropriate places
txtLine = Replace(Text, vbLf, vbCrLf)
txtLine = Replace(Text, vbCr & vbCr, vbCr)
txtLine = Replace(Text, """", "")
' This writes the line to the file
My.Computer.FileSystem.WriteAllText(fileSave, txtLine, False)
I got an error message when I tried "Using". The line looked like this:
Using My.Computer.FileSystem.ReadAllText(RestranName)
The message said "Using operand of type "String" must implement "System.IDisposal". I'm not sure what it's trying to tell me.
Thought and ideas?
Thanks again.
Don