Applescript to read the content a text file

Hi.
How can I get the content of a text file and put this in a new variable.
I’m need read this file and execute this lines on the fly.
Thanks

Execute? Do you mean the file contains applescript code?
If so:

run script (read alias "path:to:file")

I’ m need take on text file in my hd and start on the fly

ex:


on adding folder items to this_folder after receiving this_item
	tell application "Finder"
		set my_folder_path to (every item of this_item) as string
	end tell
	set texto to read alias my_folder_path
	set theString to texto as string
	run script theString 
end adding folder items to

I’m used this file for test in action folder


tell application "QuarkXPress™ 4.1"
		activate
		display dialog "ola mundo cruel "
	end tell

thanks