D
DeeVee
I am very new to the language.
I am trying to open up to ten files from a list of many data files and
writing them all to one big file. To do this I am getting them
individually from the console each time i run the program. For example
each time I run the program I have to type:
c:/dev-cpp/file1/vnov94_b.txt
c:/dev-cpp/file1/faug74_a.txt
etc...
etc...
Do anyone have a simple idea so that i can do this much quicker?
I was thinking maybe if I just had to type the actual file and not the
whole path but im sure on how to do that. Thanks
This is what i have
for (int filecount=0; filecount<10;filecount++) {
char *a;
cin>>a;
if (*a=='x') break;
ofstream outfile("c:/dev-cpp/file1/abc.txt",ios:ut |
ios::app);
ifstream infile(a);
etc...
I am trying to open up to ten files from a list of many data files and
writing them all to one big file. To do this I am getting them
individually from the console each time i run the program. For example
each time I run the program I have to type:
c:/dev-cpp/file1/vnov94_b.txt
c:/dev-cpp/file1/faug74_a.txt
etc...
etc...
Do anyone have a simple idea so that i can do this much quicker?
I was thinking maybe if I just had to type the actual file and not the
whole path but im sure on how to do that. Thanks
This is what i have
for (int filecount=0; filecount<10;filecount++) {
char *a;
cin>>a;
if (*a=='x') break;
ofstream outfile("c:/dev-cpp/file1/abc.txt",ios:ut |
ios::app);
ifstream infile(a);
etc...