Skip to content

Instantly share code, notes, and snippets.

@taka2
Created January 13, 2011 09:21
Show Gist options
  • Select an option

  • Save taka2/777622 to your computer and use it in GitHub Desktop.

Select an option

Save taka2/777622 to your computer and use it in GitHub Desktop.
$.fileCreate("test.txt", function (writeStream) {
var FILE_IOMODE_FOR_READING = 1;
$.fileOpen("test.wsf", FILE_IOMODE_FOR_READING, function (textStream){
while(!textStream.AtEndOfStream) {
writeStream.WriteLine(textStream.ReadLine());
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment