Arbortext Command Language > Functions by Alphabetical Listing > chop
  
chop
chop(varname[, len])
This function removes the last len characters from the variable named by varname, which must be a scalar variable or an array element. The chop function returns the characters removed. If len is omitted, the default 1 is used, removing just the last character. This is useful for removing the trailing newline character returned by getline.
Related Topics
getline built-in function