I need a function which:
Finds and removes any instance of a carriage return in a line of text.
I am using a System.IO.StreamReader to read the data.
Dim dataFilepath as String = "C:\data\input.txt"
Dim fileDataIn As System.IO.File
Dim oRead As System.IO.StreamReader
oRead = fileDataIn.OpenText(dataFilepath)
Dim readData as String = oRead.ReadLine
Now, I need to search the String 'readData', and remove any instances of a carriage return.
I've tried the old VB Replace() function with no luck.