title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|
Monday, April 04, 2011 | |
This function sets up both a hard-coded file object and one that's got a relative path -- in this case, to the Desktop. (More on the choices for special, relative file locations here.) Right now, it's hooked up to write out to a file called Output.txt on whatever your local OS believes is the desktop (or whatever it tells Firefox it believes is the desktop...). It's a simple task to swap out for the hard-coded file path if you'd rather. This is working for me in Firefox 4.0. Paste it into the top of whatever js file you've got in chrome and call away with writeToFile("This is what you'll be writing to a file."). Got it? Here's the code. // various sources for portions of this came from... Labels: code, extension, firefox, problem solved posted by ruffin at 4/04/2011 05:40:00 PM |
|
| |
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
![]() |
|
|