How do I save the contents of this 2d array to a file

前端 未结 3 1241
情话喂你
情话喂你 2021-01-21 22:53

I Need some help trying to save the contents of the 2d array into a file. First of all im not sure what type the file should be etc .txt or dat.

I have edited the post s

3条回答
  •  攒了一身酷
    2021-01-21 23:08

    INI file like this:

    [d1]
    1=element1
    2=element2
    ...
    [d2]
    1=element1
    ...
    

    But,recommend XML, like this:

    
      
        value1
        value1
        ...
      
      
        value1
        ...
      
    
    

提交回复
热议问题