I have a text file in which the newline is specified by \r and not \n. So while using mgetl() in Scilab or readlines() in python, the whole file is read. The file is really huge and I want to avoid reading it entirely. How to do that?
Interestingly, when I tried universal newline support as recommended in this post, the command converted all '\r' characters to '\n' and then read all the lines! So the problem remains unsolved for me both in Scilab and python. The issue is that I need solution in both languages! :/
Please help..