Posted 21 February 2014 - 01:11 PM
Hello there,
I'be been looking around here and had a few test runs but still can't work it out. I need a function that can read one line from a file when called (For example readLine(filename,line). I found one thread that seemed to have it working but couldn't get it working on my end. If you are still unsure, If I have a file set up like this:
I want to be able to read this file and retrieve what is on the second line. If you could give me a hand with this I would be very thankful as it is a start to a large project of mine…
Thanks,
Vennom
I'be been looking around here and had a few test runs but still can't work it out. I need a function that can read one line from a file when called (For example readLine(filename,line). I found one thread that seemed to have it working but couldn't get it working on my end. If you are still unsure, If I have a file set up like this:
Line 1
Line 2
I want to be able to read this file and retrieve what is on the second line. If you could give me a hand with this I would be very thankful as it is a start to a large project of mine…
Thanks,
Vennom