How do I edit this javascript to open a text file?

Hi,
This is a simple bookmarklet “Firefox Notepad” source @here:

javascript:(function(){s=document.selection?document.selection.createRange().text:window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection():'';pwin=window.open('','_blank','menubar=yes,scrollbars=yes,location=no,height=550,width=700');with(pwin.document){if(s){write(s);close();}body.contentEditable='true';designMode='on';}if(window.focus){pwin.focus();setTimeout('pwin.focus()',125)};void(0);})()

How to edit the above to open a text file instead of blank at the start?
I tried the two obvious places and they didn’t seem to work; Will spaces in the path be a problem?

Sample path =
C:\Documents and Settings\Compaq_Owner\Desktop\sample text.txt
Thank you

You can’t open files from computer via javascript.

The first step would be to upload the text file to the web so that you can specify its address properly in the window.open call.