I am a little familiar with ProcessBuilder and process threads. Now I am faced with the problem that the process that I am automating is reading some information from the two files that I need to provide. I am currently writing files and providing paths to the program through ProcessBuilder. Since I expect there will be millions of starts in the near future, I would like to speed things up by doing all the work in memory, rather than reading and writing to a file.
Basically, what I need to do is grab a request to open a file from an automated program and provide the expected data from a string stream or something similar. Of course, if I could tell ProcessBuilder in some way, the file paths that I provide will be replaced by threads, which will be even better.
How can i achieve this?
source
share