File reading
Posted: Tue Feb 22, 2011 3:23 am
Hello! I'm starting Emacs Lisp, and my question is a basic question about file handling, how is it done in Elisp?
I'm coming from Python, so my problem is about the following:
How is this kind of simple file reading done in Elisp? (Open the file, read the lines, print the lines from 9 to 12...)
I'm coming from Python, so my problem is about the following:
Code: Select all
>>> f=open("btf001.srt")
>>> lines=f.readlines()
>>> print lines[9:13]
['3\r\n', '00:01:36,300 --> 00:01:38,200\r\n', '{y:i}Oktober \xe4r inventeringstid.\r\n', '\r\n']
>>>