/ Published in: C#

Note: change build Action of file to resource
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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"; }
Comments
