Hi,
I'm posting this simple question here, because I haven't found a satisfactory solution online.
My problem is: I have a huge input unformatted file (say ~1GB) with data and I want to be able to read the last line of data without having to go through the whole file (reading line by line till I reach the end). Is there a way to jump to the last line? I'd like to do it using only F90 and not with some bash/F90 script.
Thanks.
I'm posting this simple question here, because I haven't found a satisfactory solution online.
My problem is: I have a huge input unformatted file (say ~1GB) with data and I want to be able to read the last line of data without having to go through the whole file (reading line by line till I reach the end). Is there a way to jump to the last line? I'd like to do it using only F90 and not with some bash/F90 script.
Thanks.