Update to solve the segmentation fault

Note that you were casting "argv[i]" to a file pointer and pass it to the "tsfile_read()" function which is request a "FILE" pointer data type. You need to pass "fp" instead