Why is this not working ?
StreamReader m = new StreamReader("../folder1/email.html", System.Text.Encoding.UTF8);
code file and html file are in diff folders so I that its some path issue but its not because I just now copied this html file in the same folder where this code file is and changed code to:
StreamReader m = new StreamReader("email.html", System.Text.Encoding.UTF8);
still not working.. What’s wrong? Is the syntax wrong or what?
If you use a relative path it will be relative to the bin/Debug or bin/Release folder, not the project folder where your code file is, so try: