1. That's not a syscall. A syscall transfers control over to the system (because of the interrupt table given to the CPU)
2. Don't use system: http://cplusplus.com/forum/articles/11153/
3. It's because z is an std::string, not a C-string which is what system() takes as a parameter.
Use .c_str() when this problem crops up again; but it's better just not to use system() at all.
omg? then i have a question on doing this.
actually, im trying to create a text file using system("cat > abc.txt") so the user can directly key in the text input through this prompt. if dun use this step then what other way i can do it?