Blankj / Blankj/AndroidUtilCode

Help Needed: how to use readFile2String

Đang mở
#1,650 1 bình luận 0 reaction 1 người được giao Được @Blankj nhận Xem trên GitHub
help wanted
Ngôn ngữ chính
Java
Star
33.6k
Fork
10.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Describe the feature

How to use FileIOUtils.readFile2String function?
I wrote this:
```
String externalString = PathUtils.getExternalStoragePath();
String testFileString = FileIOUtils.readFile2String(PathUtils.join(externalString,"test.txt"));
# i also tried:
String testFileString = FileIOUtils.readFile2String("/storage/emulated/0/test.txt");

```
And the testFileString is null.
Could anyone tell me why?
Thanks.

## Reference
None

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.