Use input output instead of read write to avoid 100% cpu use in newer gambas