Control words are used in Explicit Definition (:)   and are punctuation that
determine the sequence of execution.

You need to be in an explicit definition to use while.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Vincent-Jones
Sent: Friday, June 20, 2008 13:39
To: JSoftware
Subject: [Jprogramming] Really silly!

I think I am going nuts!

A very simple program .. balking on a very simple line.
Everything works correctly except for the control.

Can somebody put me out of my misery .. please

infile=: 'b' fread '/home/david/Desktop/Contacts_List.csv'
p=:1
n=:0 $0
while. (p < $ infile) do.
        n=:n, >(2}.',' chop >p{infile),(<'_______________')
        p=:p+1
end.
n
)

   load '/home/david/j602-user/temp/addresses.ijs'
|spelling error
|   while. (p < $ infile) do.
|   ^
|[-5] /home/david/j602-user/temp/addresses.ijs

Thanks;

David

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to