Jump to content

Exporting INI to Text


FireLord
 Share

Recommended Posts

use

IniReadSection ( "filename", "section" )



            
        

        

        
            

    
        

        
            [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
        
    

        
    

    

    




    Link to comment
    
        
    
    
    

    
    Share on other sites
    

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    


    
    More sharing options...

    


    

                    
                    
                    
                

                    

                    
                    





    

    

    
        
            
                


    
        
    

                
                
                    
                        

                    
                
            
        
        
            
                


FireLord
            
            
                Posted 
                
            
        
    
    
        


FireLord
            
        
        
            
                
                    


    
        
    

                    
                    
                        

                    
                
            
            
                Active Members
                
            
            
                
                    
                        
                            
                                
                            
                                 139
                            
                                
                            
                        
                        
                    
                
            
            
                

            
        
    
    
        



    
        
            
                
                    
                        Author
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted 
            
            
                
                
            
        
    

    

    

    
        
        
            export to where.?Just export it to a text file on my desktop.


            
        

        

        
            

    
        

        
            
[center]See the Helpfile[/center]
While Alive()
     DrinkWine();
}
[center][/center]
Link to comment
Share on other sites

try this

#include<Guiconstants.au3>
#include<array.au3>

Dim $IniFile = @MyDocumentsDir & "\test.ini"
dim $Export_file = @MyDocumentsDir & "\Export.txt"

$Var=IniReadSection($IniFile,"test")
FileOpen($Export_file,2)

for $i = 1 to $var[0][0]
    $split=StringSplit($var[$i][1],",")
    for $j =1 to $split[0]
    FileWriteLine($Export_file,$split[$j])
Next
Next

sleep(1000)
FileClose($Export_file)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...