![]() |
WScript Help?
Does anyone know if its possible to store an array into a text file.
Basically the array contains a count of # times script has been visited, name of user, major, age. So far I got a good idea how to create the array, but I'm not sure if I can store it into a file, or if it's possible. ex. of what file text file should have: 1, john doe, psychology, 41 2, bob catz, accounting, 23 Code:
' Save file as script.vbs |
use a special character to separate each cell, in your example, the comma.
when you are saving your text, just stick the comma in between, then returns after each array. you could then use regular expressions to rebuild the arrays. it would be better to use something other then a comma to break up the test though. maybe like a pipe or a tilda, things that are not used much. this is not the most efficient way, but it is the easiest to understand. |
All times are GMT -8. The time now is 04:15 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project