Basically a line looks like this: 'number number text text text' with spaces dividing them. The numbers are ok, because the readln() just splits them after the space, but it reads the 3 texts as one. How can i read them into separate strings?
You probably meant that you used read() instead of readln(). readln() always reads until the end of the line (also for numbers). Unfortunately for you read() for a string also reads to the end of the line (unlike for numbers). So the only solution for you would be to split the text once you read it, in code.
@Rik Yeah, I read the whole file char by char and split it at spaces, but it was a really long code and I wanted to do it more effectively (this is for an exam haha)
If anybody faces this problem, here's a really easy solution I just found: read the whole thing into a string. Then pos(' ',stringsname), then copy('spacepos'+1, 200), then delete(spacepos,200) from the first string and voilá.
ReadLnand then split it to the variables usingsscanf.