E-Prime will allow you to import a text file (i.e. TXT file) via the List object. Word files (e.g. DOC, RTF files) are not supported.
By setting the LoadMethod property of the List to "file" and the FileName property accordingly (i.e. the TXT file you want to import), you can load a tab delimited text file into your experiment. All text files imported into E-Prime via the List object must be tab delimited and in accordance with the settings of the List object itself. In the text file, you must specify the Weight, Procedure, and Nesting attributes along with the Stimuli that you are presenting. Essentially, the text file should be a "mirror" of the List object itself. Each attribute should be separated by a tab. A tab in a TXT file moves to another column in the List Object, whereas a carriage return moves you done to the next row. Ensure that there are no extraneous spaces before or after each tab or value entered into the text file.
Also, please make sure that the first row of your text file lists the attribute headers (Weight, Procedure, etc.) for each column. You need to include these within the file, or it is not readable by E-Prime.
To create a tab delimited text file:
1. Use any type of word processing software such as Notepad, Word, etc. Make sure that you use File -> Save As to save the file using the TXT extension.
2. Each attribute including Weight, Procedure and Nesting attributes must be included in the text file even if an attribute does not include any variables.
3. Separate each attribute with a tab.
4. The text file will look similar to the following:
Weight Nested Procedure Stimulus1 CorrectAnswer
1 TrialProc cat 1
1 TrialProc dog 2
To import the tab delimited file:
1. Select the List Object in the Structure View
2. Open the Properties Window via the View menu.
3. Set the LoadMethod to "file"
4. Set the FileName to the name of the TXT file you want to import.
Importing TXT files can be somewhat cumbersome, because E-Prime is extremely picky about the formatting of those files. However, if you feel that text files will best serve your purposes, the above instructions should serve as a guide to creating and importing them.
Legacy End User Comments
|I followed your instructions exactly, and cannot import a text file with my stimuli. I ensured that it had Windows line-breaks, was UTF-8 encrypted, and included all of the header information. |
I then tried to import your "example" text document above (which is actually SPACE delimited), and tried to both import it as is, or with tabs, and neither case worked.
Could you please include a document that can be read in as a list? And can you describe whether we need to add rows and columns to the list before the file is imported?
I cannot get this to work in the GUI nor in E-Basic.
|I followed the steps here. But, nothing shows up in my list. Anyway, to check and see what is wrong?|
|Is it possible to load only parts of a text file into an e-prime list? |
For example, I would like to load only 3 trials (i.e. lines) at a time.