I am trying to get this program to open the file and output the info onto the screen. I created a file on visual studio and another one on my desktop but both won't open. I keep getting the error message "Bad file". I even tried dragging the file onto the screen but it still keeps giving me the error. I am not sure what is causing the problem because I feel like I am inputting the file name correctly.
The file contains this information:
Joseph Kardian III
1500 4 6
Joe Karlton
3000.00 4 6
Nancy Brown
6780 6 -10
What I ended up doing was creating a text file in Visual Studio and saving it into my desktop. Then I ran the program and dragged the file from my desktop into the program and it worked!