i have a little question here.
i have read the tutorial, but didn't quite understood how to work with input/output to/from files.
let's suppose i have a file, called file.txt:
word1, word2, word3
word4, word5, word6
and i create an array in the main():
how can i make each one of the array members get one of the words? i mean, how to tell the program "from here to here will be mArray, so mArray = "word1". from here to here will be mArray, so mArray = "word2", etc"?
i think a 'for' loop would do fine. i just need help to take a serie of characters from the .txt file and convert it to a string. i have no idea on how to do that...
thanks in advance! :)
EDIT: i tought about putting a specific character between the words i want, so the program can separate them. is this possible?