Hi,
I have a program which extracts 30 characters from a specific point in a file and performs an rtrim function on it to remove any spaces on the right of the text. After this a concatenate function adds a folder path before the extracted text and a ".mp3" extension after the extracted text thus creating a full filepath. A working example of this process would be: extracted text = "song 1 ". Text rtrimmed = "song 1". Text concatenated = "C:\windows \" + "song 1" + ".mp3". Filepath formed = "C:\windows\son g 1.mp3".
Problem: if the 30 character extract ends in something other then a space the whole process works fine. However if there is one space or more at the end of the extract the rtrim function has no effect on the text. Further to this, after the concatenation function the ".mp3" isn't added. I cannot understand why this happens. Help?
I have a program which extracts 30 characters from a specific point in a file and performs an rtrim function on it to remove any spaces on the right of the text. After this a concatenate function adds a folder path before the extracted text and a ".mp3" extension after the extracted text thus creating a full filepath. A working example of this process would be: extracted text = "song 1 ". Text rtrimmed = "song 1". Text concatenated = "C:\windows \" + "song 1" + ".mp3". Filepath formed = "C:\windows\son g 1.mp3".
Problem: if the 30 character extract ends in something other then a space the whole process works fine. However if there is one space or more at the end of the extract the rtrim function has no effect on the text. Further to this, after the concatenation function the ".mp3" isn't added. I cannot understand why this happens. Help?
Comment