#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    16
    Rep Power
    0

    Python in proccessing text file data ?? help me


    what advantages Can i get from Python's modules , functions in processing text file data ? Can you list here some advantages , please help me .
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Location
    Bay area
    Posts
    9
    Rep Power
    0
    Are you trying to decide if you should use python? Or have you already decided to use python, but aren't sure what functions/modules would be helpful?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    16
    Rep Power
    0
    i have used Python and i love it , but i want to know something about it , i'm a beginner . help me,Thanks ,
  6. #4
  7. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Reading files with Python is amazingly easy! After you have read the file in you can manipulate the data as a string, or as a list of strings [lines] depending on which method you used to read the files data .

    There are also a few useful modules in the standard library for working with files; os, filecmp, shutil and difflib to name a few.

    http://www.python.org/doc/2.4/lib/module-os.html
    http://www.python.org/doc/2.4/lib/module-shutil.html
    http://www.python.org/doc/2.4/lib/module-filecmp.html
    http://www.python.org/doc/2.4/lib/module-difflib.html

    You can read more about the file() class at the links below, or type help(file) at the Python shell prompt .

    http://www.python.org/doc/2.4/tut/node9.html#SECTION009200000000000000000
    http://www.python.org/doc/2.4/lib/bltin-file-objects.html

    Enjoy,

    Mark.
    programming language development: www.netytan.com Hula

  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    16
    Rep Power
    0
    thank so much

IMN logo majestic logo threadwatch logo seochat tools logo