This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

data loss

Old posts that have not been replied to for several years.
Locked
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

data loss

Post by Ofloo »

Code: Select all

  if {[file exists $::pubscript(usrlist)]} {
    set pubscript(rfile) [open "$::pubscript(usrlist)" "r"]
    set pubscript(read) [read $pubscript(rfile)]
    close $pubscript(rfile)
    set pubscript(wfile) [open "$::pubscript(usrlist)" "w"]
    foreach line [split $pubscript(read) \n] {
      if {![string match {} [lindex $line 0]]} {
        puts "$line"
      }
    }
    close $pubscript(wfile)
  }
I know it can be done mutch simpeler but could someone point me out what is wrong with this cause it seems that everytime i do this that all data is lost been staring hours at hit but just can't put my finger on it ..
XplaiN but think of me as stupid
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

never mind stupid me i noticed what is wrong grrrrrr i am realy getting tired should get some sleep lol
XplaiN but think of me as stupid
Locked