Sign in to follow this  
Followers 0
Potrus

Easy question

7 posts in this topic

I have got a problem, let's say i have text and i have words in "xxxx" whats the command to copy only the text in "" ,

it looks like this:

1360481,"xxxxxx"
1360482,"yyyyyyyy"
1360483,"wwwwwww"
1360484,"zzzzz"
1360485,"qqqqqqq"
1360486,"uuuuuuuu"

Share this post


Link to post
Share on other sites



Sorry, but i've just started programming in AutoIt. Could u show me how should it looks?

Share this post


Link to post
Share on other sites

; File name - location
$File = "C:\temp_Folder\test.txt"

; read a line in the file
$Info = FileReadLine($File, 1)

; ************** for testing only
$Info = '1360481,"xxxxxx"'

; split the string by the comma
$Split = StringSplit($Info, ",")

; remove the quote marks
$Result = StringReplace($Split[2],'"', '')

MsgBox(0x0,"Info", $Result)

remove the line under "************** for testing only" to use the file line you read

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thank you very much.

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