Hello,
The access of Xillybus device files should be done following classic UNIX practices, as Xillybus' driver is written to behave according to these.
Having said that, the Xillybus host application programming guide for Linux brings together much of what you need to know to get it done right:
http://xillybus.com/downloads/doc/xilly ... _linux.pdfAs for outputting to a plain file, it should be done the same way as outputting to a device file, so the guide can be referred to on this task as well.
Besides, the streamread/streamwrite sample programs in the Linux bundle are already written according to these guidelines. The only thing to be wary about is that the buffer size in these programs is too small, and should be replaced with a larger buffer that is allocated with malloc() or similar.
Regards,
Eli