text file edit object?

Discussion in 'Python' started by Simon Burton, Feb 23, 2004.

  1. Simon Burton

    Simon Burton Guest

    # Does anything like this exist ?

    myfile = TextFile("myfile.c")
    if myfile and myfile[0].startswith( "/*" ):
    myfile[:12] = []
    myfile.save()


    # Simon Burton.
     
    Simon Burton, Feb 23, 2004
    #1
    1. Advertising

  2. Simon Burton

    Simon Burton Guest

    Please ignore, my news reader went crazy.

    Simon.


    On Tue, 24 Feb 2004 09:57:03 +1100, Simon Burton wrote:

    >
    > # Does anything like this exist ?
    >
    > myfile = TextFile("myfile.c")
    > if myfile and myfile[0].startswith( "/*" ):
    > myfile[:12] = []
    > myfile.save()
    >
    >
    > # Simon Burton.
     
    Simon Burton, Feb 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. San Diego Guy
    Replies:
    0
    Views:
    549
    San Diego Guy
    Aug 7, 2003
  2. Schultz
    Replies:
    3
    Views:
    565
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Feb 14, 2005
  3. =?Utf-8?B?a2Vu?=
    Replies:
    1
    Views:
    10,337
    Wiktor Zychla [C# MVP]
    Jan 23, 2006
  4. Simon Burton

    text file edit object

    Simon Burton, Jul 11, 2003, in forum: Python
    Replies:
    0
    Views:
    302
    Simon Burton
    Jul 11, 2003
  5. Sharon McCarty
    Replies:
    0
    Views:
    252
    Sharon McCarty
    Nov 24, 2004
Loading...

Share This Page