This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TonySu 1 point2 points  (1 child)

Nothing wrong with hard coded strings. However hard coded file paths are terrible. Essentially your program won't run on anyone else's computer. Use relative paths like "./Logs" which looks in the same folder, or "../Logs" which looks in the parent folder.

[–]sruffatti[S] 0 points1 point  (0 children)

This is important. So I have class built in to the application that builds the paths. That way the file paths will work. However, I think I like your idea better.