Charles You've had two useful replies already, but it might help to show you how to read, modify and write data in a simple J session:
Suppose you've got a text-file of rows of numerical data, not necessarily well formatted in neat columns: (Warning - my mail program sometimes loses newlines so I'll add explicit #### to indicate end of line. They are _not_ part of the original session/s) eg in mks unix $ ls ### list directory #### data.txt sh_histo #### $ cat data.txt ### list data #### 0 1 2 #### 3 4 5 #### 6 7 8 #### $ ... then in J load 'files' NB. you (probably) need some native file read functions #### NB. read data as text in rows, and convert to matrix #### NB. using " [ " just to show it happening #### [array =: "."1 freadr'c:\usr\data.txt' NB. #### 0 1 2 #### 3 4 5 #### 6 7 8 #### NB. modify a couple of numeric cells, then convert back to text #### NB. using " [ " just to show it happening #### [array =: ": 99 98 (0 1;2 0) } array NB. #### 0 99 2 #### 3 4 5 #### 98 7 8 #### NB. write the text data out to a new file #### array fwrites 'c:\usr\newdata.txt' NB. #### 27 #### back in eg unix $ ls #### data.txt newdata.txt sh_histo #### $ cat data.txt ## list data #### 0 1 2 #### 3 4 5 #### 6 7 8 #### $ cat newdata.txt ## list data #### 0 99 2 #### 3 4 5 #### 98 7 8 #### $ Sorry to be verbose but perhaps this will get you started... It won't be so easy however if you're trying to handle APL files, database files or whatever. Though there should be some csv file routines in the example J scripts provided with your installation if you're using that format. Mike Charles Holder wrote: > I just got Windows Vista x64. Since the APL I have is not compatible. > I need to be able to read a file of numbers into an array and > create another array and change the values in the cells. > How can I change a cell to a specific value? > _________________________________________________________________ > Rediscover HotmailĀ®: Get e-mail storage that grows with you. > http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.287 / Virus Database: 270.12.0/2068 - Release Date: 04/19/09 > 20:04:00 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
