display file in web

I want to display .log format file in my web application. I am able to upload and download them but want to view them in web. 
1 answers

The best way would probably be to break it into individual lines, then iterate over each line to break it down into individual attributes that you can add to an entity. Each line will be it’s own entity, so when you want to view them, pass a List of these entities to a Data Grid.

Hope this helps.