1. Standard Input (Stdin)
Use the Stdin drawer at the top right of the editor to provide standard input for your programs.
- C/C++: Passed directly to functions like
scanf() or std::cin.
- Python: Passed directly to the
input() function.
2. OmniCode.loadfile()
This command pauses execution and opens a file picker so you can inject a file into your program.
OmniCode.loadfile({ type: "txt", maxSize: "10mb", renameTo: "input.txt" });
- Must be the first line of your code.
- Python: Saved to the virtual filesystem. Read it using
open("input.txt", "r").
- JS / React: Injected as a global variable. Access it using the
renameTo key (e.g., console.log(window["input.txt"])).
3. OmniCode.save()
This command automatically downloads a file directly to your local computer.
OmniCode.save("output.txt", "Hello World!");
- Python:
OmniCode.save("output.txt", my_variable)
- C/C++:
OmniCode.save("output.txt", buffer);
- JS / React:
OmniCode.save("output.txt", myData);