WORKING WITH FILES IN SATELLITE IS VERY EASY…
satellite.include(satellite)
satellite.capsule satellite.main(satellite.container.list<satellite.variable.string> arguments)
{
satellite.variable.file my_binary_file = satellite.file.new("my_file.bin", binary)
my_binary_file.write(x238974547644873FCADFACBDF) // for hex
my_binary_file.write(b1110101010000000101110001) // for binary
my_binary_file.close()
satellite.variable.file my_text_file = satellite.file.open("document.txt", text)
my_text_file.write("some string")
// clear the file
my_text_file.clear()
// insert at line 4
my_text_file.write("some_string", 4) // so "some_string" becomes line 5, and line 4 is left alone...
my_text_file.close()
satellite.return(satellite)
}searching a file for something is simple, in satellite the motto is everything is done for you, NO CRYPTIC INTERFACES
satellite.include(satellite)
satellite.capsule satellite.main(satellite.container.list<satellite.variable.string> arguments)
{
satellite.variable.file my_binary_file = satellite.file.new("my_bin.bin", binary)
my_binary_file.write(x03218C)
satellite.variable.number my_number = my_binary_file.find(x218) // finds the position of the hexadecimal value 218
my_binary_file.write(x9C) // write 9C as a hex code
my_binary_file.return() // returns the binary or hex for 032189CC
satellite.return(satellite)
}