concatination with "\" and file existance check
Posted: October 8th, 2009, 2:10 am
basically my problems are
1- concatinate strings and adding "/" or "\" characters in it. for example
2- check if file exist then load it as av layer in project, actually i know file is there but just wanna make sure, for example
i could imagine, because in this second prob, my filename = "/c/batch/ins/quickTest.mov"
btw: i m on cs3
any help / guidance will be really helpful
regards, lala
1- concatinate strings and adding "/" or "\" characters in it. for example
Code: Select all
path = "c:\batch\ins"
fileName = "quickTest.mov"
file = path + "\" + file; // this is giving error right now
Code: Select all
var chkFile = new File(fileName);
if (chkFile.exist){return true;} else {return false;}
btw: i m on cs3
any help / guidance will be really helpful
regards, lala