How to create list of values using text files?