how would i tell would files are in a folder and how big a file is?
how would i tell would files are in a folder and how big a file is?
int a; don't make a program without it.
This is OS specific... if you're on windows, to get a file's size use GetFileSize() or GetFileSizeEx()
To list a directory, use FindFirstFile, FindNextFile and FindClose API functions. Look them up on msdn.microsoft.com if you need more help.
If you're not using Windows you can use the <io.h> _findfirst, _findnext and _findclose functions. With them (the first 2 at least, the 3rd is use to clean-up when you're done) you load the files' info into a _finddata_t structure which holds the file's attribute(s), creation/access/write times, size and name. You can find info on all this on MSDN, too.