使用windows phone读取txt文件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用windows phone读取txt文件相关的知识,希望对你有一定的参考价值。
Note: change build Action of file to resource
private string ReadFile(string filePath) { //this verse is loaded for the first time so fill it from the text file if (ResrouceStream != null) { Stream myFileStream = ResrouceStream.Stream; if (myFileStream.CanRead) { //read the content here return myStreamReader.ReadToEnd(); } } return "NULL"; }
以上是关于使用windows phone读取txt文件的主要内容,如果未能解决你的问题,请参考以下文章