We are considering migrating from one system to SharePoint. Assuming I can correctly read the existing pages, how would I automate the addition to our SharePoint system ?
I use the following block of Powershell to update an existing wiki page. The tricky bit was the pre-formatted block of 'boilerplate' html in the "ows_WikiField" field that wraps the page content. If the content wasn't wrapped properly in this html, it wouldn't work correctly.
As stated, this block of code updates an existing page. Creating a new page would just involve initializing a new item and adding it to the list. You could then set the content of the page as demonstrated below. If you're trying to do this in .Net, I'm sure the objects below should exist in the SharePoint .Net libraries.