I am trying to check the size of a file with this code.
The file is named "OneFile.txt" and is of the size 230 kb.
The MessageBox will show the number 37. If I change the file so it will be 460 kb instead, still the messageBox will show the number 37.
I am not sure if I have missed something here ? I beleive I am not checking the size of the file below.
I think I checking the string ?
std::string path = ""; path = "C:\\Folder1\\Folder2\\OneFile.txt"; double filesize = path.size(); stringstream Getsize; std::string Getsize2; Getsize << filesize; Getsize2 = Getsize.str(); String^ sizeee = gcnew String(Getsize2.c_str()); MessageBox::Show(sizeee);