Hello,
Simple question this time, I hope, I have a program that collects an argument from execution on another program, the argument is the path to a file.
Now, the problem is that when I try to read the argument to a string using argv[1], it'll only get the first character of the string. Thing is, trying to do the same on argv[0], which, to my best understanding, is supposed to contain the name of the program, it also only gets the first letter of it, so I'm thinking that my method for doing this is not correct, although everywhere I looked online I was told that it's done just by any of the various methods of assigning to a string.
Can anyone just show me how it's done please?
Thanks alot.