Am quite struggling with as I tried many liberary to print table but no sucess so thought to post here
my data is in a text file (resource.txt)
which looks like this (the exact same way it prints)
pipelined 8 8 0 17 0 0
nonpipelined 2 2 0 10 0 0
I want my data print in the following manner
Design name LUT Lut as m Lut as I FF DSP BRAM
pipelined 8 8 0 17 0 0
Non piplined 2 2 0 10 0 0
some time data may be more line Colom remain same but rows may increase.
(i have python 2.7 version)
am using this part in my python code all code working but am couldn't able print data which i extracted to text file in tabular form. As i can't use panda liberary as it won't support for python 2.7, but i can use tabulate and all liberary ..can anyone please help me . I tried using tabulate and all but its giving error
i tried at end simple method to print but its not working (same code works if i put at top of code but at the end of code this wont work..anyone any idea
q11=open( "resource.txt","r")
for line in q11:
print(line)