E-prime crashes after reading text file
吉祥如意
gusunny1 at gmail.com
Sat Apr 27 02:44:08 UTC 2013
sorry , I just checked email this morning. you can refer to this code :
open "G:\\lisa.txt" for input as #1
linecount=-1
do while not EOF(1)
linecount=linecount+1
input #1, ss
loop
close #1
redim array1(linecount)
leth1=linecount+1
open "G:\\lisa.txt" for input as #1
for n=0 to linecount
input #1,array1(n)
next n
close #1
redim array3(linecount/2)
2013/4/3 Marisa Crisostomo <me.crisostomo6 at gmail.com>
> How would I do that?
>
>
> On Sun, Mar 31, 2013 at 11:38 PM, 吉祥如意 <gusunny1 at gmail.com> wrote:
>
>> I am not sure but I have learnt that when you call from a text file, you
>> need first get the line number in the text, then loop again to get each
>> line in the textfile. I don't know if this is the reason your eprime
>> program get crashed.
>>
>>
>> 2013/3/30 Marisa Crisostomo <me.crisostomo6 at gmail.com>
>>
>>> I deleted all unreferenced objects and it is still too large. What is
>>> interesting is that my program was being compiled until I started changing
>>> fonts and layouts of the slides.
>>>
>>> Marisa
>>>
>>>
>>> On Thu, Mar 28, 2013 at 3:48 PM, ben robinson <baltimore.ben at gmail.com>wrote:
>>>
>>>> Do you have a lot of unused "Unreferenced E-Objects" in your file? Try
>>>> deleting them, if so, and see if your script is no longer "too large to be
>>>> compiled".
>>>>
>>>> Ben
>>>>
>>>>
>>>> On Thu, Mar 28, 2013 at 3:01 PM, MarisaC <me.crisostomo6 at gmail.com>wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I am hoping someone could help me out.
>>>>> My script is "too large to be compiled" so I am trying to have e-prime
>>>>> call from a text file instead.
>>>>>
>>>>> Here is the code that I have been using:
>>>>>
>>>>> open "FinalTstQuestionTXT2.txt" for Input as #1
>>>>> For IndxArt=0 to Article_Count - 1
>>>>> For TxtCounter = 1 to FinalTstQ_Count
>>>>> Line Input #1, textstring$
>>>>> 'Articles(IndxArt).FinalTst(TxtCounter).FinalQuestion = textstring$
>>>>> Next TxtCounter
>>>>> Next IndxArt
>>>>> close #1
>>>>>
>>>>> The program compiles and the script is generated successfully, but
>>>>> when I try to run it, e-prime crashes, and I get the windows message.
>>>>>
>>>>> I know that e-prime is reading from the file because when I set the
>>>>> FinalTstQ_count number to more than the number of lines in the text file, I
>>>>> get the "Input past end of file" error message (as expected). It seems that
>>>>> the problem occurs when e-prime gets to the end of the text file.
>>>>>
>>>>> Any help would be greatly appreciated!
>>>>> Thank you,
>>>>> Marisa
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "E-Prime" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to e-prime+unsubscribe at googlegroups.com.
>>>>> To post to this group, send email to e-prime at googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msg/e-prime/-/kCPKL2LGInMJ.
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "E-Prime" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to e-prime+unsubscribe at googlegroups.com.
>>>> To post to this group, send email to e-prime at googlegroups.com.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "E-Prime" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to e-prime+unsubscribe at googlegroups.com.
>>> To post to this group, send email to e-prime at googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "E-Prime" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to e-prime+unsubscribe at googlegroups.com.
>> To post to this group, send email to e-prime at googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "E-Prime" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to e-prime+unsubscribe at googlegroups.com.
> To post to this group, send email to e-prime at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20130427/bd11539b/attachment.htm>
More information about the Eprime
mailing list