Loading a Txt File into a Text Area?
BlitzPlus Forums/BlitzPlus Programming/Loading a Txt File into a Text Area?
| ||
How can you load a text file into a text area? Ive looked and cant find any info. Thanks |
| ||
First use OpenFile. Then use a combination of ReadLine and AddTextAreaText. Then CloseFile. |
| ||
Basically the program is more like a notepad editor. Thanks soja, but could you or anyone provide a little more detail for me. Thanks. |
| ||
f=readfile("The file.txt") while not eof(f) r$=readline(f) addTextAreaText(my_text_area,r) wend closefile f |
| ||
thanks Rims. Ill try that |
| ||
oops, try try this if it comes out in one long line: r$=readline(f)+chr(13) ; add a return |