Bug? file.writemap b4a and b4i do not generate same file

Discussion in 'iOS Bugs & Wishlist' started by imbault, Apr 30, 2015.

  1. imbault

    imbault Well-Known Member Licensed User

    @Erel ,
    in b4a, file.WriteMap, puts #Tue Apr 28 23:22:42 CEST 2015 at first line, then the map lines
    in b4i just a map, key = values

    The goal was porting a b4a app to b4i, maps files handling in both platform made me crazy, until I get the diffrence

    I'm sorry, but I've wasted lot of time, concluding to this issue

    For both platform, the file generated should be the same, if you put a # then a date time stamp on b4a, why not on b4i????


    Regards
     
    Last edited: May 1, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    Use RandomAccessFile.WriteB4XObject / ReadB4XObject instead.
     
  3. imbault

    imbault Well-Known Member Licensed User

    I find a workaround, but it has to be fixed...
    Yours
    Patrick
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    This is not considered a bug. B4J and B4A WriteMap is based on Java properties files. There is no equivalent feature in iOS.

    If you want a cross platform solution then you should use WriteB4XObject which is cross platform and is much more powerful than WriteMap.
     
  5. imbault

    imbault Well-Known Member Licensed User

    Right Erel, I didn't think using WriteB4XObject, but anyway, maybe it's not a bug, it's a problem, if your port an B4a app with Maps files embedded to a B4i app, you will have pb...

    thx
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice