I have a plain text file and a few random lines of data, nothing specific.. I was wondering how exactly I would go about reading this file line by line as the following pseudo code:
arrLines[]
data = open ("x.txt", read, handle)
for line in data
if line == "stop" then stop reading
arrLines.add(line)
close(handle)
but I want to skip the first line in the file. very simple stuff in other languages I know such as python..ect, I'm finding it very difficult to learn from the documentation because they seem to expect you to already know a whole lot of prolog before using it :/
can anyone recommend some resource where they don't expect you to know much about prolog before using it? A little more detail about what things mean and examples of using them not just a description of what it is