It's a terrible idea to write USB or other port manually, it can be changed or mistyped, so my suggestion is to add some class that calls inside of the file (is required if it's possible) and returns by method port that the user selected from provided ports list.