I am trying to run a program from the USB device, and I want to save a file to the same device that I am running the program from. Is there a way in karel to get the device I am running from, or at least the current directory or file path ?
Get the current device
-
ath -
May 9, 2023 at 6:14 PM -
Thread is Unresolved
-
-
MOM
May 9, 2023 at 6:16 PM Approved the thread. -
hi ath,
you can't run( ..but you can load from mc,ud1) prog from a device like MC oder UD1.
When you load from e.g MC, it's loaded into memory AND then it's (also) accessable at your MD-device. (as far as I know)
So in Karel you need at least two programs:
1. program that loads another one from a device
2. and your 'main' program