Hey guys, im trying to use the getfilesize win32api function, but it is returning -1, why? (test.txt has 17 bytes).
ThanksCode:int main(){ HANDLE hFile; hFile = "c:\\teste.txt"; int filesize = GetFileSize(hFile, NULL); cout << filesize << endl; system ("PAUSE"); }