title: Decoding Windows 7 Sticky Notes File
body: <p>I love the windows 7 sticky note app and need to write a quick script to copy my notes to my iphone (easier than bringing a laptop to meetings). How can I extract my notes from the stick notes file (C:\Users\USER\AppData\Roaming\Microsoft\Sticky Notes\StickNotes.snt). The file stores undo entries, or other meta data, for each note, so I can't simply read n bytes from the start of a note.</p>
  
  <p>Edit:
  Sample file - <a href="http://www.mediafire.com/download.php?qzgkj5gmdek" rel="nofollow noreferrer">http://www.mediafire.com/download.php?qzgkj5gmdek</a></p>
  
  <p>The encoding is difficult for me to decode. Text fragments aren't continuous, they're broken up by deleted strings (probably allowing for a per-sticky undo), and there aren't any clear delimiters. There is a forensic app that decodes the files. App description, taken from website...</p>
  
  <p><a href="http://www.simplecarver.com/exchange/articles/article-4.html" rel="nofollow noreferrer">http://www.simplecarver.com/exchange/articles/article-4.html</a></p>
  
  <p><i>Structured Storage Extractor is a utility for reading and extracting information from the Structured storage format (ole container) files.</i></p>
  
  <p>Apparently the data is stored in an OLE stream format. I tried using the PEAR OLE Library but it didn't read the stream properly :/.</p>