Jump to content

_FileWriteFromArray


Go to solution Solved by Danyfirex,

Recommended Posts

Posted

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)
  • Solution
Posted

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

Posted (edited)

Mark as answered. :)

You're welcome.

Saludos

Edited by Danyfirex

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
  • Recently Browsing   0 members

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