# HG changeset patch # User tyty # Date 1413784280 14400 # Node ID cba550e9de77ba889062b38f85ec33763fec50da # Parent a47e0bfd8de8e4acb120e64aba15fbddfa6e9de9 Uploaded diff -r a47e0bfd8de8 -r cba550e9de77 reactivity_cal/read_file.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/reactivity_cal/read_file.py Mon Oct 20 01:51:20 2014 -0400 @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import sys + + + +def read_t_file(in_file): + f = open(in_file); + result = []; + for aline in f.readlines(): + temp = []; + tline = aline.strip(); + tl = tline.split('\t'); + for i in range(0, len(tl)): + temp.append(tl[i].strip()); + result.append(temp); + f.close(); + return result; + +