Advertisement
FlashStrider

Untitled

Nov 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. FILE *fp;
  2. char ch;
  3. char file_name[200];
  4. printf("Enter the name of the file you wish to read\n(PS:It must be in the .C format):\n\n");
  5. fflush(stdin);
  6. fgets(file_name,200,stdin);
  7. if(file_name[strlen(file_name)-3] == '.'&&file_name[strlen(file_name)-2] == 'C')
  8. {
  9. if( fp )
  10. {
  11. // ако успееш да го направиш виж дали не може да го отделиш във функция
  12. /*fflush(stdin);
  13. checks();*/
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement