Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long getSize(string name)
- {
- FILE* arch = fopen(&name[0], "r");
- long actualPos = ftell(arch);
- long sizeArch;
- fseek(arch, 0, SEEK_END);
- sizeArch = ftell(arch);
- fseek(arch, actualPos, SEEK_SET);
- fclose(arch);
- return sizeArch;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement