I know I'm going to end up feeling really stupid, but I give on this one. I have the following code:

Code:
#include <fstream>
#include <iostream>

int main(void)
{
	std::ifstream file;
	char temp[1024];

	file.open("20110803.txt");
	while (1)
	{
		file.getline(temp, 1024);
		std::cout << temp << std::endl;
	}
	file.close();

	return 0;
}
First off, I know about the endless loop, I'm trying to get one thing working at a time.

The text file is ~1.5 GB and when I run the program, only about the first 4.8 MB is shown before it shows nothing but newlines, that is, it does not get all the way through the file.

What the hell is going on here?