XWidgetSoft Forum
https://www.bbs.xwidget.com/

Reading a file on disk
https://www.bbs.xwidget.com/viewtopic.php?f=7&t=2945
Page 1 of 1

Author:  shashwatblack [ April 14th, 2013, 12:07 am ]
Post subject:  Reading a file on disk

is there a way to perform file IO?
all i want to do is open a file, and read the contents.
but i can't figure out how..

thanks for any help.

Author:  Tony [ April 14th, 2013, 6:32 am ]
Post subject:  Re: Reading a file on disk

You can uses readFile or readFileUTF8 function.
Code:
var a = readFile( widgetPath + "main.xul");
alert(a);

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/