Marie,
I took a few minutes to make this work for myself using EP2.0.10.356,
here is how I did it:
1) Put the text file names in a List like usual (in my case I leave off
the ".txt" at the end and then add that later with inline code, just
because I think that looks neater).
2) Use an attribute reference such as [StimText] in your stimulus object
like usual.
3) Add an InLine object before your stimulus object (TextDisplay, Slide,
etc.). Use this inline code to read the file named at step 1 into the
attribute named in step 2. E.g., with a List column named "TextFile"
holding file names, and using the attribute "StimText" for the text to
display,
Dim fNum As Integer
Dim fName As String
fName = c.GetAttrib("TextFile") & ".txt"
fNum = FreeFile
Open fName For Input As fNum
c.SetAttrib "StimText", Input$(FileLen(fName), fNum)
Close fNum
4) Back on your stimulus object, open its property pages, go to the
Common tab, and set Generate PreRun to "BeforeObjectRun", otherwise
E-Prime will try to fill in the attribute reference before the InLine
runs and the task will crash.
That should take care of it. No big deal once you know how. See topics
"Freefile", "Open", "Input$ (functions)", and "Close" in the E-Basic
help for more info.
-- David McFarlane