V+ Remote Library Documentation FOR i = 1 TO num.items TYPE $items[i-1] IF (types[i-1] == 0) THEN TYPE " Is a file" ELSE TYPE " Is a directory" END END ; Delete the file on the PC CALL rm.pc.fdel($file, 3, status) IF (status TYPE "Unable to delete the file from the PC: ", status END .END rm.pc.fapps2($file, start.idx, num.lines, $lines[], wait.time, status) Abstract Append an array of lines to a file on the PC. Input Parameters Parameter Description $file The name of the file to append to on the PC. start.idx The starting index in the array num.lines The number of lines in the array to copy. $lines[] The lines to append to the file, starting at the start.index.
wait.time The amount of time to wait for the operation to complete. Output Parameters Parameter Description status Status of the operation: 0 = success, Example .PROGRAM ex1.rm.pc() AUTO REAL i, num.items, status AUTO $file, $to.file, $lines[3] AUTO $file.spec LOCAL REAL types[] LOCAL $items[] $file = "C:\log.txt" ; Write 3 lines in a file on the PC FOR i = 1 TO 3 CALL rm.pc.fapp($file, $TIME(), 1, status) IF (status ACE Reference Guide, 18317-000 Rev A Page 820