I am trying to read a file in my resource file (I have changed Build action to Embedded Resource). I get an Argument Null exception...not sure what I am missing?
Imports System.IO
Imports System.Reflection
Dim assembly As Assembly = Assembly.GetExecutingAssembly()
Dim reader As New StreamReader(Assembly.GetManifestResourceStream("File.sym")) ' Argument Null occurs System.ArgumentNullException: 'Value cannot be null. Parameter name: stream'
' Open the file and start reading each line
Do
Dim mapping As New Mapping()
line = reader.ReadLine
If line Is Nothing Then Continue Do
m = Regex.Match(line, "([^][]*)]")
n = m.Groups(1).ToString()
mapping.n = n