@wkurnikumnieniema wrote:
Hello.
I'm trying to load text file byvar filePath = Path.Combine(Content.RootDirectory, "l1.dat"); using (var stream = TitleContainer.OpenStream(filePath)) { text = File.ReadAllText(filePath); }
It's just for test, but I don't know where to put l1.dat, because whatever i try (with content directory or not), I get
System.IO.DirectoryNotFoundException: Could not find a part of the path "/Content/l1.dat".
First time I do something for Android so I have no idea what should I do with this.
Edit:
The main question is:
how to add a existing file with data to a project and what path to it will be on device after compile.
Posts: 6
Participants: 3