Knapsack file reader