![]() |
changing a \ to / in a properties file
Hi,
I want to change a Java properties file. I have changed some strings but I need to change path designators. To keep it a simple request: I am trying to change all back slashes [\] to forward slashes [/]. I have tried using AdvReplaceInFile it does not work for me in this instance. Thanks, audacious Java uses a forward slash as a path designator that gets converted to the correct path designator for the OS environment at runtime. |
Just loop through the length of the string and compare each index with '/' and write to a new string with '\'.
code: |
Let's reverse / and \ in code above.
Gal' |
| All times are GMT. The time now is 04:37. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.