IneedaSmoke
Active member
- Joined
- Mar 4, 2008
- Messages
- 26
- Programming Experience
- Beginner
Hey all. I'm having a bugger of a time trying to remove carriage returns. I have a large text file with a bunch of little squares. I'm guessing they're carriage returns from what i've googled. They are not standard ascii characters.
Anywho, i'de like to get rid of them. I've got a loop that tests this condition:
If textCharArray((charPosition) + (133 * rowPosition)) = Environment.NewLine Then
textCharArray((charPosition) + (133 * rowPosition)) = ""
End If
Where 133 is how long each row is if there isn't a carriage return and 134 if there is, char position = where in the row, and rowPosition is which row i'm looking at.
I've tried:
Environment. Newline
vbcrlf
vbcr
vblf
chr(10)
chr(13)
Does anyone have any suggestions? TIA
Anywho, i'de like to get rid of them. I've got a loop that tests this condition:
If textCharArray((charPosition) + (133 * rowPosition)) = Environment.NewLine Then
textCharArray((charPosition) + (133 * rowPosition)) = ""
End If
Where 133 is how long each row is if there isn't a carriage return and 134 if there is, char position = where in the row, and rowPosition is which row i'm looking at.
I've tried:
Environment. Newline
vbcrlf
vbcr
vblf
chr(10)
chr(13)
Does anyone have any suggestions? TIA