testing for file when using loadStrings

if( loadStrings("test.txt")!=null) String test[]=loadStrings("test.txt");

Above does not work.

What would be the right way to test if the file exists before trying to put it in array with loadStrings?

Tagged:

Answers

Sign In or Register to comment.