Potrus Posted December 3, 2007 Posted December 3, 2007 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"
Bert Posted December 3, 2007 Posted December 3, 2007 stringsplit The Vollatran project My blog: http://www.vollysinterestingshit.com/
Potrus Posted December 3, 2007 Author Posted December 3, 2007 Sorry, but i've just started programming in AutoIt. Could u show me how should it looks?
Bert Posted December 3, 2007 Posted December 3, 2007 do you have the helpfile open? there is a example that shows you how The Vollatran project My blog: http://www.vollysinterestingshit.com/
weaponx Posted December 3, 2007 Posted December 3, 2007 #include <file.au3> #include <array.au3> Dim $myArray _FileReadToArray("New Text document.txt", $myArray) _ArrayDisplay($myArray) For $X = 1 to $myArray[0] $temp = StringSplit($myArray[$X], ",") ConsoleWrite(StringTrimRight(StringTrimLeft($temp[2], 1), 1) & @CRLF) Next
Valuater Posted December 3, 2007 Posted December 3, 2007 ; 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)
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