Question: I'm attempting to read a file's datemodified value, but I've been unable to do so. I'm continually receiving "Inappropriate I/O control operation" errors. This is a windows directory structure that I'm attempting read. I've attempted to pass through the full file-path along with the file name ($outputFilePath."/".$files) to the stat() function ($! returns nothing in this case, program simply dies), as well as using a file-handle (below) with no results. Any help is appreciated. 

```
chdir($outputFilePath);
opendir(my $dirHandle, $outputFilePath) or die "Cannot opendir $outputFilePath: $!";
my $files;
my $modTime; 
#print getcwd();
while($files = readdir($dirHandle)){
  if($files ne '.' && $files ne '..'){
    open(my $fileHandle, $files) or die "Cannot open $files: $!";
    $modTime = (stat($fileHandle))[9] or die "Cannot stat file $files: $!";
    print $files."-".$modTime."\n";
    close($fileHandle);
   }
}
closedir($dirHandle);

```

Answer: 
How about <https://github.com/vjeux/jParser> - This library looks promising.
This uses HTML5 typed arrays so it does require a [modern browser](http://caniuse.com/#feat=typedarrays)

```
function strToU32(str) {
    var u8 = new Uint8Array(str.length);
    str.split("").forEach(function(char,i){ 
        var code = char.charCodeAt(0); 
        u8[i] = code;
    })

    var u32 = new Uint32Array(u8.buffer);
    return u32;
}

```

Usage:

```
var integers = strToU32("abcdefgh");
console.log(integers[0]); // returns 1684234849
console.log(integers[1]); // returns 1751606885

```