Loading a text file into a textarea

后端 未结 4 427
猫巷女王i
猫巷女王i 2020-11-27 08:55

First of all, I am very basic at java. I am trying to browse a .txt file and load the contents of it, into the text area. I am completed the part, till which I receive the f

4条回答
  •  死守一世寂寞
    2020-11-27 09:06

    Use a BufferedReader to read the .txt file line by line. You can then append each line to your text area.

提交回复
热议问题