How to read a local text file?

前端 未结 20 2311
北恋
北恋 2020-11-21 05:28

I’m trying to write a simple text file reader by creating a function that takes in the file’s path and converts each line of text into a char array, but it’s not working.

20条回答
  •  南笙
    南笙 (楼主)
    2020-11-21 05:55

    Provably you already try it, type "false" as follows:

     rawFile.open("GET", file, false);
    

提交回复
热议问题