Path to read text file in asset folder

Hi all,

string datapath = “/Statistics/HotelGuest/” + year.ToString() + “.txt”;
FileInfo achievement=new FileInfo(Application.dataPath + datapath);
StreamReader sr=achievement.OpenText();
…do something;
sr.Close();

This works fine for me in window, but i build i ios platform, i cant get from the path
Can someone tell me how to access the path of asset folder in ios?

Thanks

See this thread:
http://forum.unity3d.com/threads/154989-Android-Asset-Path

If you’re not writing to the file then you’d be better off using TextAsset.

–Eric