Hi Guys

Has anyone got a good example which I can look at which will enable me to read  a CSV file with 3 columns and will read X no of rows threads)?.

I have something like this:

class Test Runner:
 def __init__(self):

  userFile = open('test.csv', 'r')
  userFileLineCounter = 0
  userFileLine = 'X'
 
  while (userFileLineCounter != numGrinderThreads):
   userFileLine = userFile.readline()
   userFileLineCounter += 1
   uerFileLine = userFileLine.strip()
   if userFileLine:
    if (userFileLineCounter == (grinder.threadID + 1)):
     print '\nUser Number = %d, Row Counter = %d, %s\n' % ((grinder.threadID + 1), userFileLineCounter, userFileLine)
     break
 
  userFile.close()

This works fine if I have one column in the CSV file……

Any assistance will be  greatly appreciated!

Regards

Raul





------------------------------------------------------------------------------------------------
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information.  
If you have received it in error, please notify the sender
immediately and delete the original.  Any unauthorized use of
this email is prohibited.
------------------------------------------------------------------------------------------------
[mf2]