Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main (){
  5.  
  6. FILE *fp = 0;
  7. int x = 0;
  8. int y = 0;
  9. fp = fopen("C:\\Users\\Andreas\\Documents\\PROG\\ls.csv", "r");
  10. if (NULL != fp) {
  11. while (!feof(fp)) {
  12. fscanf(fp, "%i:%i\n", &x, &y);
  13. printf("%i: %i\n", x, y);
  14. }
  15.  
  16. fclose(fp);
  17. }
  18. }
  19. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement