Guest User

Untitled

a guest
Feb 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6. ///////////////////////////////////////////////
  7. //Extension Checker
  8. //////////////////////////////////////////////
  9.  
  10.  
  11. void ExtensionChecker(void)
  12. {
  13. //////////////////////////////////
  14. //IFSTREAM OBJECT CREATION
  15. /////////////////////////////////
  16. ifstream myfile ("ListingDirectoryList.txt");
  17.  
  18. /////////////////////////////////
  19.  
  20.  
  21.  
  22. /////////////////////////////////
  23. //BUFFER SIZE
  24. ////////////////////////////////
  25. char storageofextensions[100];
  26. int n= 2;
  27. ////////////////////////////////
  28.  
  29. ///////////////////////////////
  30. //STORAGE OF GET
  31. //////////////////////////////
  32.  
  33. ///////////////////////////////
  34. //FILE READ
  35. //////////////////////////////
  36. {
  37.  
  38.  
  39. if(! myfile.eof())
  40.  
  41. {
  42.  
  43. myfile.read(storageofextensions, 400);
  44.  
  45. fprintf(stderr,(storageofextensions));
  46.  
  47. myfile.get(storageofextensions,n );
  48.  
  49. if (storageofextensions);
  50. {
  51. fprintf(stderr,"does work!");
  52. }
  53. else (!storageofextensions)
  54. {
  55. fprintf(stderr,"doesn't work");
  56. }
  57.  
  58. }
Add Comment
Please, Sign In to add comment