Jump to content
Sign in to follow this  
tsue

read part of file

Recommended Posts

tsue

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
tsue

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)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.