(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:23:15 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "Importing  An Array From a Text File")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 7)
  (component 0 NOTE
   (name "Warranty Disclaimer")
   (implementation
	(text2 4
	  "This example is provided as an"
	  "illustration \"as is\", and Hewlett-Packard"
	  "Company makes no warranty of any kind"
	  "with regard to this example."
	)
   )
  )
  (component 1 NOTE
   (name "Info About")
   (implementation
	(text2 23
	  "Overview:"
	  "This program illustrates one way to import an array "
	  "from a text file.  In this case, the dimensions of"
	  "the array are contained in the file header."
	  ""
	  "Details:"
	  "The file being read must contain a header that"
	  "specifies the size of each of the array\'s two"
	  "dimensions.  The first number in the file"
	  "is the number of columns and the second number "
	  "is the number of rows.  The numbers that follow"
	  "are the elements in the array, each separated by "
	  "whitespace.  Here are the contents of a typical"
	  "data file:"
	  ""
	  "    2"
	  "    3"
	  "    1.1  2.2"
	  "    3.3  4.4"
	  "    5.5  6.6"
	  ""
	  ""
	  "    "
	)
   )
  )
  (component 2 START25
  )
  (component 3 FROMFILE
   (interface
	(output 1
	 (name "rows")
	 (lock constraints)
	 (optional yes)
	)
	(output 2
	 (name "X")
	 (lock constraints)
	 (optional yes)
	)
	(output 3
	 (name "cols")
	 (lock constraints)
	 (optional yes)
	)
   )
   (implementation
	(transactions 2
	  "READ TEXT cols, rows REAL"
	  "READ TEXT x REAL ARRAY:rows, cols"
	)
	(attr iopath file read "~installDir/examples/manual/manual27.dat"
	 (readTerm "\n")
	 (fs " ")
	 (eol "\n")
	 (multiField fullSyntax)
	 (arrayFormat block)
	)
   )
  )
  (component 4 TEXTDISPLAY
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (component 5 TEXTDISPLAY
   (name "Columns")
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (component 6 TEXTDISPLAY
   (name "Rows")
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (configuration
   (connect D2:0 D3:0)
   (connect D3:2 D4:1)
   (connect D3:3 D5:1)
   (connect D3:1 D6:1)
  )
 )
 (viewFor -1
  (active detail)
  (detail
   (geometry 0 53 900 447)
   (configuration
	(viewFor 0
	 (active icon)
	 (icon
	  (geometry 601 96 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 542 119 397 82)
	  (editing disabled)
	 )
	)
	(viewFor 1
	 (active detail)
	 (icon
	  (geometry 0 0 110 0)
	 )
	 (detail
	  (geometry 32 100 537 201)
	  (editing disabled)
	 )
	)
	(viewFor 2
	 (active detail)
	 (icon
	  (geometry -21 -7 42 15)
	 )
	 (detail
	  (geometry 237 322 67 37)
	 )
	 (title off)
	)
	(viewFor 3
	 (active detail)
	 (icon
	  (geometry 275 178 110 25)
	 )
	 (detail
	  (geometry 52 433 427 155)
	 )
	 (terminals on)
	)
	(viewFor 4
	 (active detail)
	 (icon
	  (geometry 721 478 118 25)
	 )
	 (detail
	  (geometry 739 232 303 357)
	 )
	)
	(viewFor 5
	 (active detail)
	 (icon
	  (geometry 0 0 78 0)
	 )
	 (detail
	  (geometry 557 541 147 39)
	 )
	)
	(viewFor 6
	 (active detail)
	 (icon
	  (geometry 0 0 46 0)
	 )
	 (detail
	  (geometry 557 351 147 39)
	 )
	)
	(connect D2:0 D3:0
	 (points 2 270 361 270 412)
	)
	(connect D3:2 D4:1
	 (points 6 521 510 530 510 530 500 550 500 550 410 736 410)
	)
	(connect D3:3 D5:1
	 (points 2 521 560 554 560)
	)
	(connect D3:1 D6:1
	 (points 4 521 460 540 460 540 370 554 370)
	)
   )
   (stackingOrder 1 0 3 5 6 4 2)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
