Struggle to read a .txt file into TextBox?

HARRY

Active Member
Licensed User
Longtime User
Hi,

I create a small .txt file with text and TAB's and CR/LF. No other formatting data. Safe it as UTF-8

Does somebody have a sample how to read that file into a textbox. I tried several possibilities with and without the binary file dll, but do not succeed. Frequently the message, translated, : Can not convert a DBasic.Other.CStreamReader into System.IO.Stream.

I don't see the solution, but it should be simple, I guess.

Harry
 

agraham

Expert
Licensed User
Longtime User
Read the the help under Help -> Main help -> Keywords -> Files. All the text file stuff is there. BinaryFile is, not surprisingly, only needed for manipulating non-text files.
 

Attachments

  • Test.txt
    33 bytes · Views: 172
  • TextTest.sbp
    639 bytes · Views: 157
Cookies are required to use this site. You must accept them to continue using the site. Learn more…