spadez
02-03-2009, 09:21 PM
Hi,
As a project I am trying to create a program in C (although I want to avoid C# and C++) which will allow me to take information from a text file (excel CSV), which will then be displayed in the program and can later be used for calculations.
Ive tried searching on the internet, but im new to this and im not sure what I should be looking for.
This is the base:
#include <stdio.h>
#include <stdlib.h>
void main(int argc, char *argv[])
{
FILE *fp; /* file pointer */
char ch;
/* see if correct number of command line arguments */
if(argc !=3)
{
printf("Usage: find <filename> <ch>\n");
exit(1);
}
fclose(fp);
}
I dont know the first thing about coding at the moment. Can someone tell me if this is usable. If it isnt, is anyone able to tell me a better solution?
Regards,
James
As a project I am trying to create a program in C (although I want to avoid C# and C++) which will allow me to take information from a text file (excel CSV), which will then be displayed in the program and can later be used for calculations.
Ive tried searching on the internet, but im new to this and im not sure what I should be looking for.
This is the base:
#include <stdio.h>
#include <stdlib.h>
void main(int argc, char *argv[])
{
FILE *fp; /* file pointer */
char ch;
/* see if correct number of command line arguments */
if(argc !=3)
{
printf("Usage: find <filename> <ch>\n");
exit(1);
}
fclose(fp);
}
I dont know the first thing about coding at the moment. Can someone tell me if this is usable. If it isnt, is anyone able to tell me a better solution?
Regards,
James