- Home /
android file open
I want to open file on android. I tried to implement as following.
// cs script
public Start(){
using(FileStream stream = new FileStream("sample.bin", FileMode.Open)){
data = new byte[stream.Length];
stream.Read(data, 0, (int)stream.Length);
...
}
}
And,i set data as following.
- StreamingAssets - sample.bin
But,the file could not be opened. How do I implement ?
Comment
Your answer
Follow this Question
Related Questions
My build size randomly doubled Andriod 1 Answer
How to access a text file from a built unity generated android application 0 Answers
Android file path? 0 Answers
Search for files on android 2 Answers
File paths on Android 0 Answers