java - What happens when a File is not created for a file input stream? -
what happens when file not created file input stream? happens if want retrieve file hasn't been created yet? equal null?
you ioexception. best bet test file.exists()
first. since possible file deleted between time call file.exists()
, time start reading it, have handle exceptional case anyway.
Comments
Post a Comment