create object base on text file

moonhkt moonhkt at gmail.com
Fri Jan 25 07:06:22 EST 2013


Hi All

Python 2.6.x on AIX

Data file

PrinterA
      print Production batch1
             xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      print Production batch2
             xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      print Production batch3
           xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

PrinterB
     print Production batch4
           xxxxxxxxxxxxxxxxxxxxxxxxxxx
      print Production batch5
          xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


What to using python create object base on date file ? I know how to
read text file.

object["PrinterA"] have  batch1,  batch2,  batch3

object["PrinterB"] have  batch4, batch5

moonhkt



More information about the Python-list mailing list