rshnGhost Posted September 21, 2017 Posted September 21, 2017 I have script which reads data from a csv file whose delimiter is ,(comma) The read process is successful using _FileReadToArray(fileName, arrayName, ",") But while writing back using _FileWriteToArray(fileName, arrayName, ",") the delimiter is changed to |(or symbol) but I need ,(comma) as the delimiter. Kindly help me Thank you
rshnGhost Posted September 21, 2017 Author Posted September 21, 2017 Also it adds an extra line at the beginning of output file ie. Number of Rows | Number of Columns I also need to eliminate them too.
Danp2 Posted September 21, 2017 Posted September 21, 2017 The default delimiter is "|" when writing a 2-dimensional array. You have to override the default value. Read the help file for more details. Latest Webdriver UDF Release Webdriver Wiki FAQs
rshnGhost Posted September 21, 2017 Author Posted September 21, 2017 Thanks I solved it... _FileWriteFromArray ( $sFilePath, $aArray ,1 ,Default ,",") The makes the output file with delimiter as comma and also avoids printing row value and Column value at first list.
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