AnsweredAssumed Answered

Cant get file.read to work

Question asked by 1_jstockton on Dec 18, 2012
Latest reply on Dec 19, 2012 by 1_jstockton

I'm trying to read a file either from a local drive or a drive on another server and I can't seem to get it to work.

 

Here is what I am trying:

 

filename = "RSSBusSuspendedQuery.sql"

query = file.read(filename)

 

print (tostring(query))

 

The print statement comes back as NIL.  I have the sql file in the same directory as the script I am executing it from and have also tried reading it from a drive on another server using filename = "//she-nms3/c$/Program Files (x86)/Nimsoft/probes/database/sql_response/RSSBusSuspendedQuery.sql"

 

Any suggestions?

Outcomes