writing .json file and read that file in Android

前端 未结 4 1122
孤城傲影
孤城傲影 2020-12-30 08:43

i m writing .json file and i want to read that file, but the problem is, when i try to read whole file as string it adds the space before and after every character and just

4条回答
  •  轮回少年
    2020-12-30 09:09

    Your writing code is the problem. Just use

    FileWriter fos = new FileWriter(mypath);
    fos.write(response);
    

提交回复
热议问题