Im trying to replace an async filestream method, which is reading data from a Hid Device and feeding it to the UI. Ive considered writing the output into a log and then importing that log again, but that just seems to over complicated.

The whole reason behind this is to be able to test the program without the controller beeing connected. So either I create a test file which can be read into to create the desired output or i just completley randomize the dataset.

Is there another maybe better way of handling this?

1 Answer 1


Read from a pipe instead of the device. My guess is you won't have to change anything if you do that. Then you can write whatever you want to the pipe and retain all the async goodness.

  • ill attempt your advice over the weekend
    – r wank
    Nov 21, 2014 at 7:57
  • Did you try? How did it go?
    – y o
    Dec 15, 2014 at 11:59
  • try yes, come right no. ive had to put this aside for the time beeing. something more urgent has come up
    – r wank
    Jan 12, 2015 at 8:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.