SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    gimme the uuuuuuuuuuu duuudie's Avatar
    Join Date
    Feb 2004
    Location
    Switzerland
    Posts
    2,253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a few questions about files

    Hi

    I would like to know if that's possible to select a particular line of file, read it, edit it or delete it.
    My guess is: open the file, read it, display the array value of the line in question and then save the whole text.
    Any ideas?

  2. #2
    My precious!!! astericks's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, BC
    Posts
    1,971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you're correct, it's as simple as that.

    open, read, edit, update.

    Here are a few things that might help you

    www.php.net/file
    www.php.net/readfile

    www.php.net/fopen
    www.php.net/fread
    www.php.net/fwrite

    Check out the examples on the site too, might help you reach a solution much quicker.

    -asT.

  3. #3
    gimme the uuuuuuuuuuu duuudie's Avatar
    Join Date
    Feb 2004
    Location
    Switzerland
    Posts
    2,253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks a lot


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •