- May 23, 2003
- 552
- 0
- 0
I have a filelist in a file but I need to call each file name in that filelist. I should be using arrays and pointers right? After I call that each file, I need to change all the spaces to tabs. I have to do looping for each files? Can anyone suggest on how to do this? like a skeleton code. By the way, each of this file are matrix/tables.
Right now I have this only.
#include <stdio.h>
#define NULL 0
main(int argc, char *argv[])
{
FILE *fpt;
if ((fpt=fopen(argv[], "r")) == NULL)
printf("\nERROR-Cannot open the designated file\n);
else{
do
fclose(fpt);
}
}
Also, after this part done, I need to combine all the matrix/table together in 3 different part. For example, table1-a and table1-b need to combine to table1. table2-a and table2-b need to combine to table2. How should I do that?
thanks
---------------------------------------------------------------------
Given the vagueness and lack of effort put into the OP, only psuedo code will be allowed to be posted to provide assistance if at all.
Senior Anandtech Moderator
Common Courtesy
Right now I have this only.
#include <stdio.h>
#define NULL 0
main(int argc, char *argv[])
{
FILE *fpt;
if ((fpt=fopen(argv[], "r")) == NULL)
printf("\nERROR-Cannot open the designated file\n);
else{
do
fclose(fpt);
}
}
Also, after this part done, I need to combine all the matrix/table together in 3 different part. For example, table1-a and table1-b need to combine to table1. table2-a and table2-b need to combine to table2. How should I do that?
thanks
---------------------------------------------------------------------
Given the vagueness and lack of effort put into the OP, only psuedo code will be allowed to be posted to provide assistance if at all.
Senior Anandtech Moderator
Common Courtesy