Jump to content

When writing a file newline does this.


Vida Marcell
 Share

Recommended Posts

Hi everyone, another question, i dont know what i'm doing wrong, i think i cant explain this:

partners->AddItem(name->GetText());
                    stream->WriteWLine(name->GetText() + " " + mobil->GetText() + " " + company->GetText() + " " + adress->GetText() + " " + "\n");
                    if (profilepic->pixmap)

if i only write one line its fine:

image.png.9d2a33e7c99f1958e6e6966d823d7114.png

but when i write an another line:

image.thumb.png.81a21228e384916ea5d6057f9c71b5da.png

Link to comment
Share on other sites

  • 1 month later...

There is no cross-platform technique for storing text files with wide strings. Although the file will be understood by your program when you reload it, Notepad does not understand it. I think you have to prefix the file with two special bytes, but I can't remember which. You can test this by saving a file in notepad with different encodings, and then reading the first two bytes to see what they are.

  • Thanks 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...