05-18-2014 09:44 PM
here you go,
05-18-2014 09:48 PM
That is not a .csv file. It is still an .xls file that you just happened to give the .csv extension to.
Did you remember to change the type of file you were saving to when you used the Save As dialog box in Excel?
05-18-2014 09:53 PM
ok got it. i got what i wanted
but why is there such a problem in the first place ie. the weird characters if the file is not in csv format??
05-18-2014 10:03 PM
@ybomi wrote:
ok got it. i got what i wanted
but why is there such a problem in the first place ie. the weird characters if the file is not in csv format??
Ugh, really? If you don't understand this basic concept, I'm not sure you'd understand the explanation.
05-18-2014 10:15 PM
Here is what the file contents look like when read as a binary file and displayed in hexadecimal.
A real csv file would have most of the hex characters starting with 3.
Lynn
05-19-2014 08:07 AM
@ybomi wrote:
ok got it. i got what i wanted
but why is there such a problem in the first place ie. the weird characters if the file is not in csv format??
The Read From Spreadsheet File reads text files that have a delimiter of some sort. Common delimiters are tab and comma. An XLS file is a proprietary format the Microsoft created. Only parsers that specifically know the xls (or xlsx) format. The Read From Spreadsheet File does NOT know this proprietary format. That is why it doesn't work.
05-19-2014 07:23 PM
thanks crossrulz, now i understand.
My bad that i did not understand fully
05-19-2014 07:38 PM
@ybomi wrote:
thanks crossrulz, now i understand.
My bad that i did not understand fully
In your own defence an Excel file is a spreadsheet. just one in a propriatary format that contains bytes and bytes of specific constructs. There is even a romur that an easter egg exists in Excel with an entire plane flight simulator. A "Generic" Spreadsheet is all that read from spreadsheet file supports.
05-19-2014 07:46 PM
thanks so much guys =D
05-20-2014 01:04 PM
Not sure about the current versions of Excel, but it is true that the earlier versions had a basic flight simulator. And when you consider that memory in a PC was limited to 640Kbytes!