dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: razorcd

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    7,924

    Yes, that is correct. You just need to convert...

    Yes, that is correct. You just need to convert the data into a readable string.
    data being the buffer, you can use this in Node:


    var cleanData = data.toString("utf8") //(or whatever...
  2. readAsText is asyncronious. So you have to create...

    readAsText is asyncronious. So you have to create en event to run your alert when fileread is successfuly complete.
    There is the onload event.

    This will work:


    function readTextFile() {

    ...
Results 1 to 2 of 2
HTML5 Development Center



Recent Articles