stevey Posted February 1, 2006 Share Posted February 1, 2006 Sorry for so many questions.. but I have another... (Just learning AutoIt, sorry!) I am working on a program that needs to be able to store a user name and a value with that user name and be able to recall that value when given the user name... For example... I would want this saved to the file: Stephen : 15 And later I would like to be able to search the file for "Stephen" and get the value "15". What would be the best method of doing something like this? Would I be saving the information to a .txt file? Or what other options of file types do I have to save the data to? I understand the basics of using AutoIt to open and get information for data, but I don't understand how to search for specific data. Thanks once again in advance. Link to comment Share on other sites More sharing options...
flaxcrack Posted February 1, 2006 Share Posted February 1, 2006 Sorry for so many questions.. but I have another... (Just learning AutoIt, sorry!)I am working on a program that needs to be able to store a user name and a value with that user name and be able to recall that value when given the user name... For example...I would want this saved to the file:Stephen : 15And later I would like to be able to search the file for "Stephen" and get the value "15". What would be the best method of doing something like this? Would I be saving the information to a .txt file? Or what other options of file types do I have to save the data to? I understand the basics of using AutoIt to open and get information for data, but I don't understand how to search for specific data. Thanks once again in advance.Stevey I would use a CSV file because you can sort the CSV file in Excel and later on you can use the commas as your string delimiter. Hope this helps. [quote] Gilbertson's Law: Nothing is foolproof to a sufficiently talented fool.Sandro Alvares: Flaxcrack is please not noob! i can report you is stop stupid. The Post[/quote]I made this: FWD & MD5PWD() Link to comment Share on other sites More sharing options...
cdkid Posted February 1, 2006 Share Posted February 1, 2006 (edited) i think i'd go with an INI file ****edit***** oops! too slow Edited February 1, 2006 by cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
stevey Posted February 1, 2006 Author Share Posted February 1, 2006 Stevey I would use a CSV file because you can sort the CSV file in Excel and later on you can use the commas as your string delimiter. Hope this helps.Sounds promising.. So a .cvs would be better than a .ini? What method do you use to search a file for a specific value/parameter? Link to comment Share on other sites More sharing options...
Helge Posted February 1, 2006 Share Posted February 1, 2006 Check out this little script... Link to comment Share on other sites More sharing options...
JSThePatriot Posted February 1, 2006 Share Posted February 1, 2006 It can be any of the "text" formats. Each have their own advantages... INI Files are structured to the point that you can name sections and keys. Keys contain values. CSV Files are structured by a character of seperation. CSV originally stands for comma seperated value, but at times you run into having values that have comma's in them, and something more creative was come up with. Using the "|" (pipe) seems to be the more common method. You can also use a .txt file. You can structure it how you prefer. Seperate values by space... lines... something else creative. Keep in mind that INI files have the INI Functions... CSV files you would need to write your own routines. Just some stuff to think about. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now