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
Merge pull request #1 from lixiangim/patch-1

Update to solve the segmentation fault