Adding records to an existing typed file lazarus / 8-Other ---------------------------------------------------------------------- dfspannie · 2009-11-24 18:48 Need help again. how do I add a record to the end of an existing tiped file ? In Delphi you do something like assignfile(tipedfile,'filename'); reset(tipedfile); seek(tipedfile,filesize(tipedfile)); write(tipedfile,record); closefile(tipedfile); I've tried doing it like the above in Lazarus, but get  Error: Incompatible type for arg no. 1: Got "File Of filetipe", expected "AnsiString" at the line containing seek. thanx again. ---------------------------------------------------------------------- Martin_fr · 2009-11-24 19:33 Taking a guess: You may have some unit in the uses clause that defines a different seek. try: system.seek() ---------------------------------------------------------------------- dfspannie · 2009-11-24 20:07 Tried system.seek() ..... Same error code.  thanx anyway. ---------------------------------------------------------------------- Martin_fr · 2009-11-24 20:25 it's filesize (which is in the same line) FileUtil.filesize takes a filename as string system.filesize takes the filetype as you expect. ---------------------------------------------------------------------- dfspannie · 2009-11-26 09:15 Thanx again.worked this time.