This isn't entirely a programming problem, but it may be at its base, which is why I'm bringing it to you guys.
For my assignment, I have download a .txt file from my prof's webpage, and then have my program open it. The file, when opened in a web browser, appears as follows:
87.0
94.5
55.6
88.0
82.0
91.0
etc.
Basically, a list of grades separated by newline characters. The problem is, when I download it and open it in notepad it appears without the newline characters (ie 87.094.555.688.0...etc.) When I open a stream to the file in Visual Studio 2008, it appears that way as well (w/o the newline characters). It appears correctly if opened in Wordpad. I have tried editing the file in notepad, in which case it will look correct in notepad but still stream to VS2008 w/o the newlines.
I am stumped. If it makes a difference, I am running Windows 7 Ultimate, and I am using
filename = fopen("scores1.txt", "r+");
to open the streams. I have tried opening it as a binary file (rb+ instead of r+) just for kicks, but I get the same result.