Pages

2 juin 2008

Read data from a file

on readFile(thePath)
try
set thePath to thePath as string
set idFile to open for access file thePath
set fileData to read idFile
close access idFile
on error errMsg number errNum
close access file thePath
return false
end try
return fileData
end readFile

>>Ouvrir le script dans l'éditeur

Aucun commentaire: