home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / programmieren / e / e_examples / userinput / sources / nameexample.e < prev   
Encoding:
Text File  |  1997-02-26  |  391 b   |  13 lines

  1. /* Get A Persons Name And Display It On Screen
  2.          An Example On How To Read User Input From CLI By Edward Farrow   */
  3.  
  4. PROC main()
  5. DEF moo[256]:STRING                  /* Memory To Store Reply In */
  6.  
  7.    WriteF('What Is Your Name? ')     /* Say The Message */
  8.       ReadStr(stdout,moo)            /* Read The Reply  */
  9.    WriteF('Your Name Is \s\n',moo) /* Display Answer! */
  10.  
  11. ENDPROC
  12.  
  13.