the break line and enter the tank codes

Hello

I'm working on an application that the user will be able to change the words in the text entry fields. I loaded a file txt for example like this:

"

| Light | LY | rank | light | LY | rank |

| O ' er. the | Glas | Sy | waves | We | go!

| Smooth | LY | glide | smooth | LY | glide |

| On | the | TR | ready | tide. |||

"

I let people change the words and save it again txt file. Pipes divides syllables. After customization of user text I would like to have the text in the same format as the original, and it works fine. The thing is that I don't know how to deal with line breaks and enter the channels. (Sent to sript php to write to the file) output txt file is something like this:

"

| Light | LY | rank | light | LY | rank | O ' er. the | Glas | Sy | waves | We | go! Smooth | LY | glide | smooth | LY | glide | On | the | TR | ready | tide. |||

"

In the txt output file, I lose all the data line break. But if I copy this content txt file doc, all data on formatting of line break will be there.

I tried to browse the output string characters and I found that charcodes 10 and 13 are in place, but not displayed in a txt file.

At this point, I would like to replace line breaks with # custom mark for example. I tried this:

var charcode:uint = 10;

var char = string.fromCharCode(0)) (charcode);

var nouvelleChaine = _newLyrics.replace (char, ' #');

But he replaced only the first char to a string.

How could I use regexp with charcodes?

How is - 10 and 13 tank appears in tracing instructions and is actually in the string but not in corectlly in a txt file format?

Any ideas?

a line break is \n and a carriage return is \r.  (and, if you need a tab, \t).

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • photos of the iPhone will not erase after importing

    I have an iPhone 6 Plus. I don't sync them to iTunes library pictures, I just plug my phone from time to time and load all my photos in the Photos app and check the box to delete after import. He never removes my pictures, and now I'm starting to hav

  • Stream 13: System Image

    Trying to create a system image on a usb key.Reception "is not a valid backup location.Performing to the top of the laptop data existing with approx. 30 GB HP Recovery Manager uses a value of information to backup - and it's very slow, any suggestion

  • Satellite A500 TV tuner disappeared after installing Windows 7

    I bought my A500 in November 2009. It has a built-in TV tuner. It works perfectly on Windows Vista with very good reception on a rabbit ear antenna. I was encouraged to install Windows 7 and sent to the Toshiba drive. I loaded it and after an aborted

  • recovery (d :))

    is there anyone who can tell me what I need to do to restore my recovery (D, some how it I failed and seems no one at hp seems to care, I can not get to recovery out the cond.. box, can't the getting started section to try things, I try to order a ki

  • CPU 100% & 15% memory - solved

    Hi allSomeone help me understand my computer when I used Photoshop then the CPU's jump to 100% and the stop of the computer itself. However memory is only about 15% used. CPU: Intel (r) Core i7 - 3770K @ 3.50 GhzMemory: 16 GBGraphics card: NVIDIA GeF