- Home /
Question by
DarmMan · Aug 07, 2015 at 10:26 AM ·
android buildtxt
System.IO don't work with android
I have to load some txt file's in my game and I was using System.IO to do that with commend System.IO.ReadAllLines and it works completely fine on computer in unity but don't work after building on samsung with android so please what should I do or what I can use instead system.IO to read txt file's on smartfon's and it would be great if it work also with telefon's with ISO, thanks
Comment
to specify I have path:
string path_first_level= @"Resources/first_level.txt";
then in Awake function I have this:
first_level= System.IO.File.ReadAllLines(path_first_level);
I use Resources file but it didn't helped, what's wron with path?
Your answer
![](https://koobas.hobune.stream/wayback/20220611234731im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
System.IO don't work on android -1 Answers
how put txt file into android package 1 Answer
Android OS message on app start. 2 Answers