Link to home
Start Free TrialLog in
Avatar of hcdev
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!

ASKER CERTIFIED SOLUTION
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
An example with the backslash is ...

test\,test.txt

I had a typo in the other example using text instead of test.  It should've been ...

test%2ctest.txt