Author Topic: Find a BLID! Any BLID!  (Read 738 times)

Is there a way to find someone's BLID from a .txt?

Like, it would read the list and pick out the BLID you chose.
« Last Edit: February 06, 2014, 03:39:48 PM by xXDeadwolf456Xx »

FileObject::readLine? What exactly are you trying to do?

FileObject::readLine? What exactly are you trying to do?

I'm making a list of friends and making it so that it will do a little [Bro] thing next to his name.

Code: [Select]
function findBLIDFromFile(%file, %ID)
{
      if(!isFile(%file))
      {
            return false;
      }

      if(%ID $= "")
      {
            return false;
      }

      %found = false;

      %f = new fileObject();
      %f.openForRead(%file);

      while(!%f.isEOF())
      {
            %line = %f.readLine();

            if(%line == %ID)
            {
                  %found = true;

                  break;
            }
      }

      %f.close();
      %f.delete();

      return %found;
}