Just trying to understand a line of code which copies a file:
new File("c:\\test") << new File("c:\\test\\newtest").bytes
What is the << known as ?
It's the left shift operator
That line of code is calling File.leftShift( byte[] bytes ) (documentation here), so is writing the bytes from newtest into test
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With