Question
How do I keep backslashes from being removed in a user input in Octave?
I'm writing a script that requires the user to copy and paste a file path as an input, which obviously includes several backslashes. This is stored as a string, but for some reason Octave is automatically removing the backslashes and concatenating the rest.
For example: This\Is\An\Example\FilePath becomes ThisIsAnExampleFilePath.
I need the backslashes in order for my script to actually use the file path and find the file. How can I get Octave to stop removing them?
PROMPT FOR USER TO INPUT FILEPATH:
filePath = input("File Path (Surround with single quotes): ");
I have not been able to come up with any solutions as of yet.