Skip to content

Instantly share code, notes, and snippets.

Created October 17, 2013 17:42
Show Gist options
  • Save anonymous/7029141 to your computer and use it in GitHub Desktop.
Save anonymous/7029141 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main () {
FILE *record_ptr;
int i = 0;
char storage[150];
char storage2[150];
int *sptr;
sptr = storage2;
record_ptr=fopen("record.csv", "r+");
while(fgets(storage,150,record_ptr) != NULL)
{
strcpy(sptr+i, storage);
i = i + 4;
}
fclose (record_ptr);
printf("%s", sptr);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment