Sign in to follow this  
Followers 0
Guest awestley

Help Creating new text file

2 posts in this topic

This is probably going to sound really stupid, but I am reading a file and parsing it out to an array.

From the array I need to write the information back into a new text file.

I know that I could append the existing file, but that can cause issues since I don't know how many lines the existing file will have.

Thanks

Share this post


Link to post
Share on other sites



Don't understand what the issue is..

If you have an Array and Array[0] contains the number of entries, you could just do:

For $x = 1 to Array[0]
     filewriteline("newfile",Array[$x])
Next

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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