This is a little command I made for reading files like config and getting the value of it..
for example: SIZE=50
______ _______ _
(______) (_______) (_)
_ _ ____ _____ _____ ____ _____ ____ ____ _ ____ _____
| | | / ___) ___ (____ | \ | ___) | _ \ / _ | | _ \| ___ |
| |__/ / | | ____/ ___ | | | | | |_____| | | ( (_| | | | | | ____|
|_____/|_| |_____)_____|_|_|_| |_______)_| |_|\___ |_|_| |_|_____)
(_____|
_______ _______ _______ ______ __ __
/ ____\ \ / / ____|__ __| ____| \/ |
| (___ \ \_/ / (___ | | | |__ | \ / |
\___ \ \ / \___ \ | | | __| | |\/| |
____) | | | ____) | | | | |____| | | |
|_____/ |_| |_____/ |_| |______|_| |_|
______ _ _ _ _ _____ _______ _____ ____ _ _ _____
| ____| | | | \ | |/ ____|__ __|_ _/ __ \| \ | |/ ____|
| |__ | | | | \| | | | | | || | | | \| | (___
| __| | | | | . ` | | | | | || | | | . ` |\___ \
| | | |__| | |\ | |____ | | _| || |__| | |\ |____) |
|_| \____/|_| \_|\_____| |_| |_____\____/|_| \_|_____/
BREAK_COMMAND_PARAMETERS(CSTRING$,BREAKCHAR$,DIRECTION$) - This command will break
a string provided the breaking character and direction.
This is useful for config reading etc etc...
{EXAMPLE:
CSTRING$ = "NAME=JACK"
BREAK_COMMAND_PARAMETERS(CSTRING$,"=","LEFT") = NAME
BREAK_COMMAND_PARAMETERS(CSTRING$,"=","RIGHT") = JACK }
FUNCTION BREAK_COMMAND_PARAMETERS(CSTRING$,BREAKCHAR$,DIRECTION$)
LAST_CHAR = FIND LAST CHAR$(CSTRING$,BREAKCHAR$)
IF UPPER$(DIRECTION$) = "LEFT"
TEMP$ =LEFT$(CSTRING$,LAST_CHAR)
TEMP_RESULT$ = LEFT$(TEMP$,LEN(TEMP$)-1)
ENDIF
IF UPPER$(DIRECTION$) = "RIGHT"
TEMP_RESULT$ = RIGHT$(CSTRING$,LEN(CSTRING$)-LAST_CHAR)
ENDIF
ENDFUNCTION TEMP_RESULT$
Making better games everday!
Oh yeah and just so you know its Oh-nek-a not One-ka!