Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package CSharp.IO;
- import java.io.*;
- /**
- *
- * @author matthewgray
- */
- public class FileInfo {
- //private variables
- private String _fileName;
- private File _file;
- //ctor
- public FileInfo(String fileName) throws IOException {
- _fileName = fileName;
- _file = new File(fileName);
- if (_file.isDirectory()) {
- throw new IOException("The path supplied is a directory.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement