Why this code returns a zero-length "BufferedReader"?
<p>This code was pasted from a tutorial web site and does not works in my machine (win7-amd64)! By the way, I would like to run this code to obtain the creation date/time of a common file.</p>

<pre><code>Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("cmd /c dir c:\\logfile.log /tc");
BufferedReader br =
   new BufferedReader(new InputStreamReader(proc.getInputStream()));
String data = "";
for (int i = 0; i &lt; 6; i++) {
   data = br.readLine();
}
System.out.println("Extracted value : " + data);
//split by space
StringTokenizer st = new StringTokenizer(data);
String date = st.nextToken();//Get date
String time = st.nextToken();//Get time
System.out.println("Creation Date  : " + date);
System.out.println("Creation Time  : " + time);
</code></pre>
