Console application read from file and WPF application read from file