Jump to content
Sign in to follow this  

StringSplit from FileReadLine

Recommended Posts


My script is reading in from a file. The .txt file is in this format.


$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


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?



Share this post

Link to post
Share on other sites

After making your changes it worked fine using @TAB delimiter. Thanks


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.