Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Unable to change the file-format of New Text Document

Writer Emily Wong

I'm trying to change the file-format of New Text Document to html.But the file-extension was changed and still it open as a .txt file.

7

4 Answers

Based on your comments you appear to have "Hide extensions of known file types" set.

This means that when you create a new text file you see:

NewFileName

rather than:

NewFileName.txt

This also means that when you rename the file all you are changing is the filename part, but not the extension. This means that Windows still treats the file as a text file rather than html file. What you have is a file called:

NewFileName.html.txt

Turn off this option. Full details can be found here but you need to go to Folder Options and select the View tab. Then find the "Hide extensions for known file types" option and clear it:

enter image description here

0

do : right click on the file and choose open with and select internet explorer

1

Alternatively, if using notepad or some similar editor to edit the file, make sure that you are saving as type "All Files (.)", with the extension ".html", and save as "filename.html".

When using "save as" in the text editor, change the codification to UTF-16 either LE or BE and also save the file name as .html.

Here is an example:

 File name: Test.html Type: can be *.txt or all files Codification: UTF-16 LE 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy