|
From: | Toby |
Subject: | [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell() |
Date: | Thu, 9 Apr 2020 03:38:01 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0 |
Follow-up Comment #10, bug #58055 (project octave): >> tst_58055_3 ### First 4 lines of file ### ans = 1234 line1 ans = 12345 line2 ans = 123456line3 ans = 1234567 line4 ### Current file position ### fpos = 47 ### Line 5 ### first__pass = 12345678 line5 ### Count lines in file ### linecount = 5 ans = 6 ans = 7 ans = 8 ans = 9 ### Status of fseek call ### status = 0 ### File position after fseek call ### fpos = 47 ### Line 5 second time ### second_pass = ine4 ### Line 6 (should be) ### ans = 12345678 line5 >> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?58055> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |