No.
It is easy to read the file and return the lines as Array , as in Perl:
array = File.readlines("testfile")
But I donβt think there is a library that guarantees that all operations on Array are reflected in the source file (or more efficient for large files than the naive approach above).
source share