.txt checking made easy!
Posted by w.e
Sunday, June 12, 2005
Description: title

alias checkthisfile {
  if ($2) {
    if ($isfile($1) == $true) {
      var %f 1
      while (%f <= $lines($1)) {
        if ($2 isin $read($1,%f)) {
          return $true
          var %sai 1
        }
        if (%sai != 1) && (%f == $lines($1)) { return $false }
        inc %f
      }
    }
    unset %saidsom
  }
}
Hmm
Posted by snang
Sunday, June 12, 2005 05:18pm PDT
A bit redundant to check if $1 exists...why not just check if $2 exists?  Seeing as $2 can't exist unless $1 exists...right?

Apart from that...what exactly is the purpose of this alias?  I don't understand.
Checks
Posted by Young~Money
Sunday, June 12, 2005 06:52pm PDT
Look through it. Just checks if $2 is in the text file.
..
Posted by snang
Sunday, June 12, 2005 07:21pm PDT
if ($read($1,w,$+(*,$2,*))) { return $true | else return $false }

... same shit?
.
Posted by w.e
Tuesday, June 21, 2005 09:48am PDT
everything was left because i was testing stuff :O sorry D:
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world