Humberto Posted October 27, 2006 Posted October 27, 2006 My script is reading in from a file. The .txt file is in this format. SomeNumber******Description $line = FileReadLine($file) The FileReadLine reads fine the entire line. I've verified this by displaying teh $line content. My problem is here with the StringSplit(). $array = StringSplit($line, "******") The problem I have is that when I display $array for each item I don't get anything for $array[2] This is my results $array[0]= 4 $array[1]= SomeNumber $array[2]= NOTE: I've tested the split() with a string that is part of my script and it parses fine. I will also like to use tab delimiter instead of ******. Can anyone help? Thanks, HV
GaryFrost Posted October 27, 2006 Posted October 27, 2006 $array = StringSplit($line, "******", 1) oÝ÷ Ú'ò¢ìÛhr§ëay×¥gz¶®¶s`¢b33c¶ÆæRÒ7G&æu&WÆ6Rb33c¶ÆæRÂgV÷C²¢¢¢¢¢¢gV÷C²ÂD" SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Humberto Posted October 27, 2006 Author Posted October 27, 2006 After making your changes it worked fine using @TAB delimiter. Thanks
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