Platform-independent Debug File I/O