Results 1 to 1 of 1

Thread: Handling mac text format files - support?

  1. #1
    Join Date
    Jan 2008
    Posts
    155
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Handling mac text format files - support?

    I am trying to modify the sdi example (on my way to my own app) to accetpt mac, dos and unix text file formats.
    Dos and unix are ok, but a chunk of text in read from a mac text file becomes one long string, difficult to parse.
    Is there any QTextStream (or similar) function to handle this?

    Text line separators:
    unix = "\n"
    dos = "\r\n"
    mac = "\r"

    It seems "\r" is simply ignored by QTextStream.

    I know Mac text format files are a dying spieces, but I don't want my app to crasch if it encounters one.
    Last edited by bnilsson; 29th March 2008 at 12:42.
    MacOSX user dabbling with Linux and Windows.

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Some very weird compilation warnings
    By MarkoSan in forum Qt Programming
    Replies: 21
    Last Post: 23rd January 2008, 16:48
  3. how to save sequences of text files and sound files
    By nagpalma in forum Qt Programming
    Replies: 8
    Last Post: 3rd July 2007, 00:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.