hi i have upload option where the user will be allowed to upload only txt file..when the admin tries to view the uploded file i want to show him in html format
Open the textfile, read it, display the read contents using html tags. Maybe you can find 'text to html conversion class' in sourceforge.