'How to create and write to a file with a Chrome extension?

Basically what I want to do is fopen() but with javascript or chrome api. Is there a way to create a file on a Windows system with Chrome api or javascript?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source