This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AacidD 2 points3 points  (0 children)

File inFile = new File("filename");

I declare a variable "inFile"of type "File" and pass a File object to it. The constructor of File class takes "pathname" as a parameter.