[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to get file postion
From: |
Ye Wenbin |
Subject: |
how to get file postion |
Date: |
Mon, 27 Aug 2007 13:54:29 +0800 |
User-agent: |
Opera Mail/9.20 (Win32) |
Hi,
If I want to access part of a big file, so it is important to build
a index of the file. But if use insert-file-contents to read the
whole file, I don't know how to convert between point in the buffer
to the position in the file(for unix file, point-1 is ok, but not for
dos file). Although using insert-file-literally is a choice, I have to
handle "\r\n" and others labor things. So I wonder whether there is
a function to convert point to offset postion in the file.
Thank you!
--
Best regards.
Ye Wenbin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- how to get file postion,
Ye Wenbin <=