strcat() giving me an illegal opertaion???
This code compiles fine, but i get an illegal operation once the program gets to the strcat() line, and i have no friggin clue.
the program reads from a file called settings and gets the first line of it, which is a directory to install something to.
i am trying to append the installdir to the word "copy" so i can use this in a system(copy).
char *copy = "copy ";
char installdir ;
ifstream settings ("settings.cfg");
cout<<"Configuration file (settings.cfg) not found.\n";
settings.getline (installdir, 64, '\n');
strcat (copy, installdir);
Anyone know why i am getting an illegal op?