Results 1 to 3 of 3

Thread: Advise sought on working with binary files across OSes

  1. #1
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Advise sought on working with binary files across OSes

    I will appreciate any advise, links to the documentation or libraries that will help me to work with binary files across major OSes. These files are mine, so I know the structure. I have to be able to write/read to the file in one OS and read/write in another.

    May be Qt offer something of this sort of thing?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Advise sought on working with binary files across OSes


  3. The following user says thank you to tbscope for this useful post:

    TorAn (18th September 2010)

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Advise sought on working with binary files across OSes

    If you already have the structure of the file then QDataStream will not be of much help because it enforces its own structure. Then probably all you need besides QFile is qFromLittleEndian() and/or qFromBigEndian().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. The following user says thank you to wysota for this useful post:

    TorAn (20th September 2010)

Similar Threads

  1. Replies: 4
    Last Post: 1st June 2010, 11:42
  2. advise sought on TreeView model design
    By QPlace in forum Qt Programming
    Replies: 0
    Last Post: 25th June 2009, 14:36
  3. Reading Binary Files
    By archanasubodh in forum Newbie
    Replies: 1
    Last Post: 27th February 2008, 12:31
  4. Replies: 6
    Last Post: 25th February 2008, 21:18
  5. Concatenating two binary files
    By nbkhwjm in forum Newbie
    Replies: 13
    Last Post: 23rd April 2007, 03:30

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.