in reply to Re^3: Write array contents to csv file
in thread Write array contents to csv file

Hi,

I can see the expected data, but after renaming the file from .csv to .xsl, i hope the data is saved in Text(Tab delimited, when i click on the .xsl file, its throwing an warning message like format is not supporting, the message is the file is in a different format than specified

Thanks

Replies are listed 'Best First'.
Re^5: Write array contents to csv file
by marto (Cardinal) on Jul 11, 2013 at 15:06 UTC

    Excel xls format isn't the same as csv, so when you change a csv file extension to xls attempting to open it in Excel will fail. Excel should open csv files, if you actually want an Excel file see Spreadsheet::WriteExcel.

Re^5: Write array contents to csv file
by poj (Abbot) on Jul 11, 2013 at 15:18 UTC

    If it is tab delimited why are you giving it the file extension .csv. ? I said xls not xsl. Anyway, what does the file look like in a text editor like notepad++.

    Update: If the message is 'The file you are trying to open is in a different format than specified by the file extension....Do you want to open the file now ? then select 'Yes'.
    poj