Windows: preparing reading line