I used this script to try to see if android can read the .txt files. This is my code
using UnityEngine;
using System.Collections;
using System.IO;
public class Text : MonoBehaviour {
public GUIText TextOutput;
// Use this for initialization
void Start () {
string[] read=File.ReadAllLines("Test.txt");
TextOutput.text="Welcome!!"+read[0];
}
// Update is called once per frame
void Update () {
}
}
when I installed my build. The result is that this build doesn’t read file for me, I tried copy Text file to my assert folder and run again. It doesn’t work, What did I do wrong plss help. Thanks in advance