javascript: how to select and parse a file
<p>Javascript novice, looking to write a program that takes an input file, <code>filenames.txt</code>, tests each line to see if it contains a file path that is > 256 characters, and then outputs the results both as on-screen text and as a serializable format, i.e. .csv</p>

<p>here's the code that I have so far, I'm asking how to access the file selected and parse it for paths longer than 256 characters</p>

<pre><code>&lt;html&gt;

&lt;head&gt;
    &lt;title&gt;256 character finder&lt;/title&gt;
    &lt;link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"&gt;
    &lt;link href="https://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet"&gt;
    &lt;script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;/head&gt;


&lt;body&gt;

    Pick a file:
    &lt;br&gt;
    &lt;input id="lefile" type="file" style="display:none"&gt;

    &lt;div class="input-append"&gt;
       &lt;input id="fileSelect" class="input-large" type="text"&gt;
       &lt;a class="btn" onclick="$('input[id=lefile]').click();"&gt;Browse&lt;/a&gt;
    &lt;/div&gt;

    &lt;div&gt;
        &lt;input type="text" value="whatever" class="field left" readonly&gt;
    &lt;/div&gt;

&lt;/body&gt;

&lt;script type="text/javascript"&gt;

    $(document).ready(function() {
        $('input[id=lefile]').change(function() {
           $('#fileSelect').val($(this).val());
        });

    }

&lt;/script&gt;

&lt;/html&gt;
</code></pre>
