SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Oct 2005
    Location
    Home
    Posts
    219
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reading/Writing to text file with this method

    I remember I used to have a code for a poll script that updated via an external text file. The contents of the text file was something like this:

    Code:
    123|12|15|xx|xx|xx|xx
    And so on...

    I know how to use the fopen(); fread(); fwrite(); functions, I just can not figure out how I changed (for example) the number 15 in that string. Was this something to do with an array?

  2. #2
    SitePoint Guru aamonkey's Avatar
    Join Date
    Sep 2004
    Location
    kansas
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes - look at the explode() and implode() functions
    aaron-fisher.com - PHP articles and more

  3. #3
    SitePoint Addict
    Join Date
    Oct 2005
    Location
    Home
    Posts
    219
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aamonkey View Post
    Yes - look at the explode() and implode() functions
    Aha! Those sounds extremely familiar! I will read up on those tonight.

    Thanks!


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
  •