Sign in to follow this  
Followers 0
behdadsoft

_FileWriteFromArray

4 posts in this topic

Hi.

I Used _FileReadToArray Function for read a text contain. then I want write them to a text file with _FileWriteFromArray but don't write any thin in text file.

Please Guide Me.

#RequireAdmin
#include <File.au3>

; Local Var
Local $CreateList = @ScriptDir & "\List.txt"
Local $ReadPath = @DesktopDir & "\Sample.txt"
Local $Array = 0

   Local $ReadList = _FileReadToArray ($ReadPath,$Array,0)
   _ArrayDisplay ($Array)
   _FileWriteFromArray ($CreateList,$ReadList,1)

Share this post


Link to post
Share on other sites



Look:

#RequireAdmin
#include <File.au3>


Local $CreateList = @ScriptDir & "\sample.txt"
Local $ReadPath = @DesktopDir & "\list.txt"
Local $Array=0
_FileReadToArray($ReadPath , $Array)
_ArrayDisplay ($Array)
_FileWriteFromArray ($CreateList,$Array,1)

Saludos


 

venezuela.png Would you like to say thank to Danyfirex using a warmy way?  offer me a cup of coffee... coffee.png

autoit_scripter_blue_userbar.png

       AutoIt...

 

 

Share this post


Link to post
Share on other sites

Thanks Danyfirex. :graduated:

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Mark as answered. :)

You're welcome.

Saludos

Edited by Danyfirex

 

venezuela.png Would you like to say thank to Danyfirex using a warmy way?  offer me a cup of coffee... coffee.png

autoit_scripter_blue_userbar.png

       AutoIt...

 

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0