I am having trouble getting this to work. I have tried several different methods, but they all fail due to getting an error stating "An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Illegal characters in path." which I only get when I put the code in a test environment. In its intended spot it just skips without an error.
After the program gets to the using statement it just skips the rest.
using (StreamReader sr = File.OpenText(Resource1.TextFile1))
{
StringBuilder sb = new StringBuilder();
sb.Append(sr.ReadToEnd());
string[] resp = sb.ToString().Split('\t');
Globals.round1 = Convert.ToDouble(resp[0]);
Globals.round2 = Convert.ToDouble(resp[1]);
Globals.round3 = Convert.ToDouble(resp[2]);
Globals.round4 = Convert.ToDouble(resp[3]);
Globals.round5 = Convert.ToDouble(resp[4]);
Globals.round6 = Convert.ToDouble(resp[5]);
Globals.round7 = Convert.ToDouble(resp[6]);
Globals.round8 = Convert.ToDouble(resp[7]);
Globals.jackpot = Convert.ToDouble(resp[8]);
}
Thanks for any help you may be able to provide.