Forum Stats

  • 3,816,590 Users
  • 2,259,210 Discussions
  • 7,893,514 Comments

Discussions

How to set a file variable in properties file to work

user9313020
user9313020 Member Posts: 1 Green Ribbon

I want to use properties file to set the file variables instead of hard coding. Therefore, I have the piece of code as below

line 74 (hardcoding the file name) works fine. 

but line 75 (using the file string from properties file) is not.

When the invocation is made at line 78, runtime error occurs. 

The file name strings in both cases are actually the same. 

Can somebody help and thanks in advance.