View Full Version : How to display first 10 lines of file using HTML?


Datta
08-25-2006, 03:57 PM
Hi Lissa,
In my HTML page there is an input feild and search button, when i enter the file pattern like .doc, .txt it displays the corresponding files. I got this when i click on a particular file, in the next window the content of upto first 10 lines has to be displayed initially and there will be 2 input boxes in the same window which decides the range of lines it should display like the if i give min as 10 and max as 100 then i should see the file content from 10th line to 100 lines. How to do this?
Help me with code.

Thanks in advance

pb&j
08-25-2006, 04:08 PM
that goes beyond html. you will need to get into a server side language such as php or perl.