Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving esacpe characters to file  RSS feed

 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I am trying to save carriage return unicode characters to a file. I can save them in the unicode state, but I want to be able to save them in the escape character form (\n). Does anyone know how I can accomplish this?

Thanks,
Rachel
 
Dan Maples
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cast them as chars useing ascii values like this:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!