http://bugs.winehq.org/show_bug.cgi?id=59908 --- Comment #7 from Janne <janne.kekkonen@gmail.com> --- Hello, I logged my test application and according to logs there were only one call to Kernel32.ReadFile with NumberOfBytesToRead set to 400. I looked LineInput implementation from mono. Code & link to code at the end. This is just quessing what might happen in case of my four line test file. First call to LineInput reads whole file and file pointer is to EOF. Next call to LineInput and check IsEOF is true -> all done. (Not sure is code below the correct one.) https://gitlab.winehq.org/mono/mono-basic/-/blob/main/vbruntime/Microsoft.Vi... Public Function LineInput() As String VerifyFileModes(OpenMode.Input, OpenMode.Binary) VerifyReadAccess() If IsEOF() Then Throw Microsoft.VisualBasic.CompilerServices.ExceptionUtils.GetVBException(VBErrors.ERR62_Input_past_end_of_file) Return Reader.ReadLine() End Function Private ReadOnly Property IsEOF() As Boolean Get Return Stream.Position = Stream.Length End Get End Property -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.