Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////
- //Extension Checker
- //////////////////////////////////////////////
- void ExtensionChecker(void)
- {
- //////////////////////////////////
- //IFSTREAM OBJECT CREATION
- /////////////////////////////////
- ifstream myfile ("ListingDirectoryList.txt");
- /////////////////////////////////
- /////////////////////////////////
- //BUFFER SIZE
- ////////////////////////////////
- char storageofextensions[100];
- int n= 2;
- ////////////////////////////////
- ///////////////////////////////
- //STORAGE OF GET
- //////////////////////////////
- ///////////////////////////////
- //FILE READ
- //////////////////////////////
- {
- if(! myfile.eof())
- {
- myfile.read(storageofextensions, 400);
- fprintf(stderr,(storageofextensions));
- myfile.get(storageofextensions,n );
- if (storageofextensions);
- {
- fprintf(stderr,"does work!");
- }
- else (!storageofextensions)
- {
- fprintf(stderr,"doesn't work");
- }
- }
Add Comment
Please, Sign In to add comment