Could anyone help me with writing characters to a string array
I'm trying to read text file which contains several commands. I want to store each command I detect in array, where each slot will contain 1 command.
Firstly, program detects how many commands is there in the file, number is stored in variable i, then creates appropriate string array and tries to write character-by-character commands to a array using while loop.
it2 is character readen from a text file, which has to be written into a array
problem of the code below is that it does not writes anything to a command array... what am i doing wrong?