//Get File Size
//By DreamVB
#include <iostream>

using namespace std;
using std::cout;
using std::endl;

long GetFileSize(char *Filename){
	FILE *fp = NULL;
	int fl = 0;

	//File to get size of
	fp = fopen(Filename, "rb");

	if (fp != NULL){
		//Move to the end of the file.
		fseek(fp, 0, SEEK_END);
		//Get file length
		fl = ftell(fp);
		//Close file
		fclose(fp);
	}
	//Return length
	return fl;
}

int main(int argc, char *argv[]){
	string a = "hello,world";
	char *lzFile = "C:\\Work\\customers.txt";

	cout << lzFile << endl;
	cout << "Filesize: " << GetFileSize(lzFile) << endl;

	system("pause");
	return 0;
}