Sign in to follow this  
Followers 0
Kovitt

filewriteline txt file contents

4 posts in this topic

Hello,

I have a txt file that I need to filewriteline the contents of it.

How do you do this?

I would use an array, but the contents of the text file changes every time the script is ran.

Any suggestions?

Thanks in advance :P

Share this post


Link to post
Share on other sites



Hello,

I have a txt file that I need to filewriteline the contents of it.

How do you do this?

I would use an array, but the contents of the text file changes every time the script is ran.

Any suggestions?

Thanks in advance :P

My guess would be an ini:

[var]

var=1

and do some variable stuff with that to save it permanently... sorry if I wasn't clear there


For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites

Your question is a little vague.

Are you trying to append to a file?

Are you trying to read the contents of a file and write them to another file?

Arrays can be dynamically allocated to accommodate the size of the file...

Have you looked at _FileReadToArray and _FileWriteFromArray?


[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

I am sorry...

I am trying to read the contents of a file and write them to another file.

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