I dont think there is an out of the box way to do what you want - If you have java experience you could do this.
I cant help but feel that there is probably a simpler way - perhaps you should frame what script you want to run and why you want to do the below. (for e.g. couldnt the thread that gets the new customer id , simply continue with that data , rather than writing it to a file and then looking for some other thread to pick it up) or must this reading writing reading happen in parallel? On Tue, Feb 8, 2011 at 7:21 PM, rats123 <r...@tester.co.nz> wrote: > > Hi, > > I'm trying to find the best way to deal with multiple threads reading from > and writing to one file. Basically I have a file that contains some > customer > ids. Sometimes a thread will need to read a line from the file and > sometimes > it will need to write a new customer id to the file. Also once a line has > been read it cannot be used so I need to read the next line in the file. > > I know the CSV dataset config allows a one time load of a file and will > handle the line by line reading of the file. But this is no good to me as > more data will be added to the file and the threads will need access to > this > data later on. > > Any help will be most appreciated. > > Thanks. > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Multiple-threads-reading-writing-to-one-file-tp3377016p3377016.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > >