| www.ClassicTW.com http://www.classictw.com/ |
|
| write .txt http://www.classictw.com/viewtopic.php?f=15&t=21648 |
Page 1 of 1 |
| Author: | Yop_Solo [ Sun Mar 08, 2009 2:04 am ] |
| Post subject: | write .txt |
Hi, In a While loop, could we use a write and make the name of the file change as the loop change... Yea, i got an array with name in it and would like to use it to name the .txt file. I got an idea, but i would like to know, if there is a better idea. Ex : Set an array will all text file with extension and write VAR VAR/string |
|
| Author: | Promethius [ Sun Mar 08, 2009 10:55 am ] |
| Post subject: | Re: write .txt |
Yop_Solo wrote: Hi, In a While loop, could we use a write and make the name of the file change as the loop change... Yea, i got an array with name in it and would like to use it to name the .txt file. I got an idea, but i would like to know, if there is a better idea. Ex : Set an array will all text file with extension and write VAR VAR/string The following might work, might not: Code: setVar $i 1 while ($i <= $arraySize) setVar $j 1 while ($j <= 10) write $filename[$i] & ".txt" $somedata[$i][$j] add $j 1 end add $i 1 end |
|
| Author: | Vid Kid [ Sun Mar 08, 2009 6:37 pm ] |
| Post subject: | Re: write .txt |
Prom , looks like you forgot to SetVar $arraySize 2 for example |
|
| Author: | Promethius [ Mon Mar 09, 2009 12:37 am ] |
| Post subject: | Re: write .txt |
Vid Kid wrote: Prom , looks like you forgot to SetVar $arraySize 2 for example Yep, good catch. |
|
| Author: | LoneStar [ Mon Mar 09, 2009 8:16 am ] |
| Post subject: | Re: write .txt |
I, for one, would really like to see this script once it's done |
|
| Author: | Yop_Solo [ Mon Mar 09, 2009 10:00 pm ] |
| Post subject: | Re: write .txt |
Thanks, i used that kind of script to write and it's working well. |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|