
Help: INPUT / INPUT # for gopher/UNIX files
Quote:
>I am trying to input a UNIX file (gopher) into a VB Text box. The file
>has no CR's but does have NL's. After being loaded it still displays the
>NL characters. Does anyone know of a VB conversion function or API that
>would handle this, or any suggestions?
>This question is similiar to the one Jim Watkins posted back in July.
>There were no threads to his original question.
>Thanks!
One approach is to read the file in probably using binary mode so that
I could get chunks for speed and replace any Chr$(10) with Chr$(13) &
Chr$(10) before placing in the text box.
or
If you use the same file over and over, I would create a new file and
copy the oldfile while replaceing the Chr$(10)'s with Chr$(13) &
Chr$(10) to a new file.
Jim Huguley
* Those who sit and think *
* Mostly sit *