VMware Cloud Community
pwyzorski-wyzgu
Enthusiast
Enthusiast
Jump to solution

how does file i/o work with this?

I am basically trying to read a properties file off of the VMO servers local hard drive. I tried a Properties.load command with a valid filepath, but it didn't seem to work. I then resorted to the filewriter object giving it an explicit filepath on the VMO server. For example: "C:\myfile.txt", but it didn't work either. What am I missing here?

~Patrick

Don't forget if the answers help, award points

Don't forget if the answers help, award points
Reply
0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

Yes, in Javascript like in Java, you have to put two \ \ instead of one or use the / to define path strings

View solution in original post

Reply
0 Kudos
4 Replies
pwyzorski-wyzgu
Enthusiast
Enthusiast
Jump to solution

how lame of me. It should be "C:
myfile.txt" or even better "C:/myfile.txt". JavaScript, go figure....

Don't forget if the answers help, award points

Don't forget if the answers help, award points
Reply
0 Kudos
admin
Immortal
Immortal
Jump to solution

Yes, in Javascript like in Java, you have to put two \ \ instead of one or use the / to define path strings

Reply
0 Kudos
pwyzorski-wyzgu
Enthusiast
Enthusiast
Jump to solution

You are correct. It was actually using the GUI to program with that threw me off.

~Patrick

Don't forget if the answers help, award points

Don't forget if the answers help, award points
Reply
0 Kudos
admin
Immortal
Immortal
Jump to solution

moving threat to appropriate forum since it's more fitting as a workflow discussion versus one relating to plugin or web service API.

Reply
0 Kudos