Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
set pathToTextFile to ((path to desktop folder as string) & "testfile.txt")
|
||||
|
||||
-- short way: open, read and close in one step
|
||||
set fileContent to read file pathToTextFile
|
||||
|
||||
-- long way: open a file reference, read content and close access
|
||||
set fileRef to open for access pathToTextFile
|
||||
set fileContent to read fileRef
|
||||
close access fileRef
|
||||
Loading…
Add table
Add a link
Reference in a new issue