Re: [fpc-pascal] How to append data to a file of byte?

2018-10-14 Thread Bo Berglund
On Sun, 14 Oct 2018 15:50:56 +0200 (CEST), in gmane.comp.compilers.free-pascal.general you wrote: >> This throws an error at SeekEof: >> >> AssignFile(F, FileName); >> if AppendToFile then >>SeekEof(F) >> else >>Rewrite(F,1); >> BlockWrite(F, Buf[0], Length(Buf)); >> CloseFile(F); >

Re: [fpc-pascal] How to append data to a file of byte?

2018-10-14 Thread Michael Van Canneyt
On Sun, 14 Oct 2018, Bo Berglund wrote: It seems like I cannot use Append() on a file of byte. Neither is it allowed to use SeekEOF() on that file type... I want to log binary data to a logfile and therefore I need to open it for writing with record size =1 and the file pointer at the eof loc

[fpc-pascal] How to append data to a file of byte?

2018-10-14 Thread Bo Berglund
It seems like I cannot use Append() on a file of byte. Neither is it allowed to use SeekEOF() on that file type... I want to log binary data to a logfile and therefore I need to open it for writing with record size =1 and the file pointer at the eof location. But all of the useful functions seem o