i am trying to load a textfile into an array and am stuck.
my textfile has 4 columns and looks like that (split by tabs):
name type xposition yposition - this goes on for a couple of lines
so i created a button which allows me to select the textfile and loads it into theData and displays it.
Code: Select all
on mouseUp
answer file "A text file"
if it <> "" then
put it into theFilePath
--don't forgett the brackets!
put URL ("file:" & theFilePath) into theData
answer theData
else
--no file was selected, or cancel was pressed
beep
end if
end mouseUp
i would be glad if someone can push me into the right direction. have a nice day, you out there!