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)
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"