# NOT RUN {
# File containing data table to be access many times
filename <- "somefile.txt"
# Create a look-up index
index <- readTableIndex(filename)
# Keys of interest
keys <- c("foo", "bar", "wah")
# Read only those keys and do it fast
df <- readTable(filename, rows=match(keys, index))
# }
Run the code above in your browser using DataLab