tsue Posted April 11, 2008 Posted April 11, 2008 (edited) lets say the file is .txt and it has this written jkhdsk sjdnsldls sjkdjfjlksdlkhello worldhello worldhello worldhellohere jkhdsk sjdnsldls jkhdsk how do i read in the third line yust the part where it says hello world until hello (the hello before here) or how do i write in this line Edited April 11, 2008 by tsue
PsaltyDS Posted April 11, 2008 Posted April 11, 2008 hello, the command iniread reads an specific part of the things saved in an inibut for the fileread i dont see how can i make to read yust specific partscan someone help meYou can read a line at time with FileReadLine(), or you can read a certain number of bytes at a time with FileRead(). The IniRead() function just does the same thing behind the scenes and parses the text it finds there, it doesn't read "parts".What kind of file are you really interested in, and what kind of "specific parts"? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
tsue Posted April 11, 2008 Author Posted April 11, 2008 You can read a line at time with FileReadLine(), or you can read a certain number of bytes at a time with FileRead(). The IniRead() function just does the same thing behind the scenes and parses the text it finds there, it doesn't read "parts".What kind of file are you really interested in, and what kind of "specific parts"? u answer my question already with filereadline thanks i was trying to read line 2. but what u said next i got interested cause maybe someday ill need to use itlets say the file is .txt and it has this writtenjkhdsksjdnsldlssjkdjfjlksdlkhello worldhello worldhello worldhelloherehow do i read in the third line yust the part where it says hello world until hello (the hello before here)
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