I'm trying to write a program that will read from a flat file of data and simulate streaming it so I can test a program that reads streaming data without having to connect and start up the streaming hardware.
What are the more realistic ways to accomplish this? I need it to stream at variable speeds depending on the hardware im simulating.
My two ideas so far are a program that writes to a named pipe, or a program that writes to a virtual serial port at the rates I need.
Is there a better (more realistic) way of simulating streaming data?