VMD-L Mailing List
From: Ashar Malik (asharjm_at_gmail.com)
Date: Mon Apr 04 2016 - 01:36:25 CDT
- Next message: Majid Shahbabaei: "Making a Skewed graphene sheet via VMD"
- Previous message: divyabharathi korlepara: "Reading from file"
- In reply to: divyabharathi korlepara: "Reading from file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
I think you have the wrong mailing list. This is for VMD related issues
only.
However there are many ways of doing this. E.g. opening a file and using
its handle in a simple for loop in Python to iterate over all lines.
Another way would be to use numpy "genfromtxt" if file lines are fixed
width and properly delimited. Other non-pythonic ways exist as well.
On Apr 4, 2016 6:22 PM, "divyabharathi korlepara" <
divyabharathik938_at_gmail.com> wrote:
> Hi all,
>
> I want to read a specific line from a file. Each
> line contains 6 values , i want to read
> all 6 values at time.Can any one help me?
> Thanks in advance.
>
> Thanks,
> Divya,
>
- Next message: Majid Shahbabaei: "Making a Skewed graphene sheet via VMD"
- Previous message: divyabharathi korlepara: "Reading from file"
- In reply to: divyabharathi korlepara: "Reading from file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]