I'm Newbie to KAREL WORLD, Could somebody help me with the karel code to--
Deleting a FILE in MD: using KAREL.pc program(FILE NAME TOBE EXTRACTED FROM DATA STRINGS REGISTERS)
As a first step I am trying to create a .KL FILE in ROBOGUIDE9.0 to just delete a file using file name as below, I'm missing something need help to debug or correct code
PROGRAM DELPRGLB
VAR
status : INTEGER -- The status returned from the built-in calls
file_spec : STRING[30] -- The created file specification for DELETE
BEGIN
DELETE_FILE (MD:\BALA.TP, FALSE, status) -- Delete the file.
IF (status <> SUCCESS) AND (status <> 10003) AND
(status <> 85014) THEN
WRITE (’ERROR ’, status,’ IN attempt TO delete ’,CR, file_spec,CR)
ENDIF
END DELPRGLB