How to programatically create a simple HTML page using the permalink of a WordPress post?

How to programatically create a simple HTML page using the permalink of a WordPress post?