Viewing large text file in a browser
Posted
by MeLight
on Stack Overflow
See other posts from Stack Overflow
or by MeLight
Published on 2009-08-16T10:15:17Z
Indexed on
2010/03/14
20:35 UTC
Read the original article
Hit count: 482
Hi, I need to write a text file viewer (not the directory tree, but the actual file contents) for use in a browser. It will be used to view large files. I want to give the user the ability to actually ummm, browse the file, ie prev page & next page buttons, while each page will show only a portion of the file.
Two question:
- Is there anyway to pass the file descriptor through POST (or something) so that on each page I can keep reading from an already open file, and not starting all over again (again - huge files)
- Is there a way to read the file backwards? Will be very useful for browsing back in a file.
Any other implementation ideas are very welcome. Thanks
© Stack Overflow or respective owner