title: File input in Java for Mac
body: <p>We're learning file input and output in my programming class right now, but I have a Macbook Pro. I understand how to do it and I can do it on Windows but I'm having trouble finding out how to do it exactly for a Mac. I just can't seem to figure out what to put in the quotes for the 'File Fred = new File(" "); What do I need to put in the quotes to have it work? I have the file in the HDD named "David". </p>
  
  <pre><code>import java.util.Scanner;
  import java.io.*;
  
  public class FileIO
  {
  
  public static void main(String[] args)
  {
  
      File Fred = new File("David:\\mytext.txt");
      try
      {   
  </code></pre>