generally you can tell using file.isText
# suitescript
b
generally you can tell using file.isText