Read a txt file in script runner #1349
-
Hello, congrats on the cosmos 5 release! I have an issue that is similar to the issue in #1333 , where I am unable to load a .txt file or any non .rb file thru ruby methods such as File.open(); the files live in my procedures folder, but attempting to debug and look for the .txt file itself has been fruitless, any ideas of how I can go about accomplishing this? Any help is appreciated Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I need to make a friendlier looking API, but for now you can access the data from any target's file like this: data = Script.body("DEFAULT", 'INST/procedures/collect.rb') The paths will always have the target name first, and then the full path to the file in the target configuration. |
Beta Was this translation helpful? Give feedback.
I need to make a friendlier looking API, but for now you can access the data from any target's file like this:
data = Script.body("DEFAULT", 'INST/procedures/collect.rb')
The paths will always have the target name first, and then the full path to the file in the target configuration.