Wednesday, July 26, 2017

How would you try to save or print a string with escape like this '\' ?

Today I got an issue working with a file path which contains '\' I wanted to save it to the database but I was unable to do.

The path is "C:\Narendra\Work"

Later I tried as "C:\\Narendra\\Work"

No comments:

Post a Comment

Call a function in child component from parent component in React

Consider the following parent component class Parent extends React.Component { constructor(props) { super(props);         thi...