Jump to content

read part of file


tsue
 Share

Recommended Posts

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 by tsue
Link to comment
Share on other sites

hello, the command iniread reads an specific part of the things saved in an ini

but for the fileread i dont see how can i make to read yust specific parts

can someone help me

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"?

:D

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
Link to comment
Share on other sites

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"?

:D

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 it

lets say the file is .txt and it has this written

jkhdsk

sjdnsldls

sjkdjfjlksdlkhello worldhello worldhello worldhellohere

how do i read in the third line yust the part where it says hello world until hello (the hello before here)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...