Try to use the File Handling Commands.. That must solve your problem..
Example of using..
Code:
Alias WriteToTheEnd {
  var %Dfile = girls.ini
  if ($fopen(Dwrite)) fclose Dwrite
  fopen Dwrite %Dfile
  fseek -l Dwrite $calc($lines(%Dfile)+1) | ;Set position at end of the last line
  if ($fopen(Dwrite).err) {
    echo Error $ferr
    fclose Dwrite
  }
  fwrite -n Dwrite some text
  fwrite -n Dwrite other text
  fclose Dwrite
}


mIRC Chm Help 6.16.0.3 Full Anchored!