On Mon, Dec 29, 2008 at 7:33 AM, David Joyner <wdjoy...@gmail.com> wrote: > > sage: f = open("mydatafile.txt") > sage: l1 = f.readline()
Thanks to William and David for helping me. I may able to achieved what I targeted with following code: f = open('example01Data.txt') varList = [x.split(' // ') for x in f.readlines()] where data in example01Data.txt is separate by " // ", sample data is below signature. Now the problem I am facing to use it in LaTeX, is reported in next email. Thanks and regards, -- H.S.Rai ======================= b // breadth of beam // 300 d // effective depth of beam // 550 D // overall depth of beam // 600 A_st // area of reinforcement // 0 phi_b // diameter of reinforcing steel bar // 12 --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---