Sign in to follow this  
Followers 0
lanadekat

any tutorial for text reading/moving/...

8 posts in this topic

#1 ·  Posted (edited)

are there any tutorial to learn how to write/move/put in in a variable/... with text in text files? ( .txt )

already googled it, but don't know what functions it uses so I couldn't find nothing

btw; I'm pretty new to autoit, and I don't really like learning everything with the help file.

Cus watching tutorials is really easy.

the only thing I can do is find an image on the screen and click on it.

So if there are some must-watch tutorials plz also post them!

Edited by lanadekat

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Have you looked here ?

Note that to your your so imprecise question,
The simplest answer is FileRead >> FileWrite.

If you need help write something more.

What you exactly want to do ? >> Describe it in 10 sentences.

Edited by mLipok

February 26, 2017: New SciTE4AutoIt3 available with the updated SciTE v3.7.3 release
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-02-26
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Have you looked here ?

Weigh it so that your imprecise question,

The simplest answer is FileRead >> FileWrite.

If you need help write something more.

What you exactly want to do ? >> Describe it in 10 sentences.

I don't know exactly what I want, cus it's just for learning.

I want to learn it cus I proberly need it in the future in some script....

Edited by lanadekat

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Have you tried YouTube? Lots of AutoIt stuff there.

yes , but I can't find anything about reading/editing/... text files

I found some things about .ini files, but I want .txt files.

Edited by lanadekat

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/autoit3/docs/functions.htm

FileRead Read in a number of characters from a previously opened file.
FileReadLine Read in a line of text from a previously opened text file.
FileReadToArray Reads the specified file into an array.

FileWrite Write text/data to the end of a previously opened file.
FileWriteLine Append a line of text to the end of a previously opened text file.

String Returns the string representation of an expression.
StringAddCR Takes a string and prefixes all linefeed characters ( Chr(10) ) with a carriage return character ( Chr(13) ).
StringCompare Compares two strings with options.
StringFormat Returns a formatted string (similar to the C sprintf() function).

StringLeft Returns a number of characters from the left-hand side of a string.
StringLen Returns the number of characters in a string.
StringLower Converts a string to lowercase.
StringMid Extracts a number of characters from a string.
StringRegExp Check if a string fits a given regular expression pattern.
StringRegExpReplace Replace text in a string based on regular expressions.
StringReplace Replaces substrings in a string.
StringReverse Reverses the contents of the specified string.
StringRight Returns a number of characters from the right-hand side of a string.
StringSplit Splits up a string into substrings depending on the given delimiters.
StringStripCR Removes all carriage return values ( Chr(13) ) from a string.
StringStripWS Strips the white space in a string.
StringToASCIIArray Converts a string to an array containing the ASCII code of each character.
StringToBinary Converts a string into binary data.
StringTrimLeft Trims a number of characters from the left hand side of a string.
StringTrimRight Trims a number of characters from the right hand side of a string.
StringUpper Converts a string to uppercase.

 

Read this all.

Analyze examples.

And back with more imprecise question,.

mLipok


February 26, 2017: New SciTE4AutoIt3 available with the updated SciTE v3.7.3 release
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-02-26
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/autoit3/docs/functions.htm

FileRead Read in a number of characters from a previously opened file.

FileReadLine Read in a line of text from a previously opened text file.

FileReadToArray Reads the specified file into an array.

FileWrite Write text/data to the end of a previously opened file.

FileWriteLine Append a line of text to the end of a previously opened text file.

String Returns the string representation of an expression.

StringAddCR Takes a string and prefixes all linefeed characters ( Chr(10) ) with a carriage return character ( Chr(13) ).

StringCompare Compares two strings with options.

StringFormat Returns a formatted string (similar to the C sprintf() function).

StringLeft Returns a number of characters from the left-hand side of a string.

StringLen Returns the number of characters in a string.

StringLower Converts a string to lowercase.

StringMid Extracts a number of characters from a string.

StringRegExp Check if a string fits a given regular expression pattern.

StringRegExpReplace Replace text in a string based on regular expressions.

StringReplace Replaces substrings in a string.

StringReverse Reverses the contents of the specified string.

StringRight Returns a number of characters from the right-hand side of a string.

StringSplit Splits up a string into substrings depending on the given delimiters.

StringStripCR Removes all carriage return values ( Chr(13) ) from a string.

StringStripWS Strips the white space in a string.

StringToASCIIArray Converts a string to an array containing the ASCII code of each character.

StringToBinary Converts a string into binary data.

StringTrimLeft Trims a number of characters from the left hand side of a string.

StringTrimRight Trims a number of characters from the right hand side of a string.

StringUpper Converts a string to uppercase.

 

Read this all.

Analyze examples.

And back with more imprecise question,.

mLipok

thanks, i guess not tutorials so I can't be lazy  o:)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Tutorials are for these who want to learn. Not for lazy people.

Edited by mLipok

February 26, 2017: New SciTE4AutoIt3 available with the updated SciTE v3.7.3 release
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button:

Spoiler

Last update: 2017-02-26
Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAPPOP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF * WinSCP UDF *

My contribution to others projects: * _sql.au3 UDF  *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities *

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

 

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