I tried to develop an algorithm that at some point would have to write the results either to the beginning of the file, or to the end.
I am trying to create a sorting algorithm that will not use as much RAM as my files to be sorted are too large for my current specifications. So for the cost of the extra time, I would like to do this directly to the file instead in RAM.
I know that you can write files in Julia this way>
write(outfile,"A, B, C, D\n")
But I cannot find how to write at the beginning of this.
Thanks for the help.
source
share