Soooo, I need to read characters until the end of the line. I know that the end of the line should be marked with /n character, and I assume that this should work, but it seems like that I fail to grasp how this /n works.
fd is part of ifstream fd("textfile.txt"), but I thought getline reads it as a string, and I need every letter seperated in array? If that's possible could you provide and example?
You don't need to specify that the newline character is the delimiter, that's the default. Just call getline() storing it into a string, then continue as you were.
I did what you suggested and it worked!
It glitched at first because if I didn't do that if(l<=text.length()) L would go beyond the amount of characters in the string and would return random characterstexts rather(when did a cout in loop) like processorarchitecture=x64, etc. :D
THANK YOU FOR RESPONSES!!!!!!!!