File reading code:
Stream stream; string external_js; using (stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("vldb.js")) ; using (StreamReader reader = new StreamReader(stream)) { external_js = reader.ReadToEnd(); } Gives an error message
Unhandled exception of type "System.ArgumentNullException" in mscorlib.dll
in line
using (StreamReader reader = new StreamReader(stream)) The file is in the resources and with the parameter "Embedded resource", but it still gives an error when compiling.