hcdev
asked on
Javascript - fopen with a finename containing comma
Hello all,
I am using the fopen() method in JavaScript to open a file. This works fine except if the file name contains a comma. It works for all other special characters I have tested.
Sample file name: “test,test.txt”
I have tried to duplicate the comma like: fopen(“test,,test.txt,”wt” ), but it still does not work. Do any of you know a workaround for this issue?
Thanks for any help in advance!
I am using the fopen() method in JavaScript to open a file. This works fine except if the file name contains a comma. It works for all other special characters I have tested.
Sample file name: “test,test.txt”
I have tried to duplicate the comma like: fopen(“test,,test.txt,”wt”
Thanks for any help in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
test\,test.txt
I had a typo in the other example using text instead of test. It should've been ...
test%2ctest.txt