How to Join Two Strings Like a Directory Path and File Name? #650
Replies: 1 comment
-
found answer in docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to figure out how to join two strings, specifically when combining a directory path with a file name. Operators like plus and minus work for arithmetic, but how to join strings? i have no idea. For example, i have:-
dir="C:\Users\MyUser\Documents" file="report.txt"
can i use this?
path = dir + "\" + file
i don't seem to find any function in str part of docs which can do this.
Beta Was this translation helpful? Give feedback.
All reactions