In c language ,how to open different directory to read multiple files? -


i using c language in vc++. want open multiple images (.tiff) different directory .can me please.

thanks

get file paths : 

if files' paths absolute : file *fopen(const char *filename, const char *mode);

if relative :

#to current directory #include <unistd.h> char *getcwd(char *buf, size_t size); 

to parent directory, can little tricky since there isn't standard c function so.

list files in directory :

#include <dirent.h> dir *opendir (const char *name); 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -