Asked by duncanb7
at 2024-04-25 02:46:18
Point:250 Replies:6 POST_ID:828483USER_ID:11059
Topic:
PHP Scripting Language;;JavaScript
I get one csv file with the following simple structure saved in ANSI format
1,2,3
4,5,6
7,8,9
The total size in my window folder show the size is 30byte , so I try to count it , every data is two byte in ASCII format
so there should be 2 byte * 5 data in 3 rows (including ",")= 30 Bytes but I wonder why that doesn't include
line-return two byte for every row. The line-return code should be inside of the csv file, otherwise how
can I extract the csv file data from recongizing every line by line-return, for example, we are using
var dataRows = data.split( "" ); in javascript to move next line, or $line_of_text = fgetcsv($file_handle, 1024) in php.
If it is true, it should be total size= 36 bytes instead of 30 bytes. ? OR for ANSI file, window doesn't count
line-return byte for the final size of the file ?
Please advise.
Duncan
var dataRows = data.split( "" )
1,2,3
4,5,6
7,8,9
The total size in my window folder show the size is 30byte , so I try to count it , every data is two byte in ASCII format
so there should be 2 byte * 5 data in 3 rows (including ",")= 30 Bytes but I wonder why that doesn't include
line-return two byte for every row. The line-return code should be inside of the csv file, otherwise how
can I extract the csv file data from recongizing every line by line-return, for example, we are using
var dataRows = data.split( "" ); in javascript to move next line, or $line_of_text = fgetcsv($file_handle, 1024) in php.
If it is true, it should be total size= 36 bytes instead of 30 bytes. ? OR for ANSI file, window doesn't count
line-return byte for the final size of the file ?
Please advise.
Duncan
var dataRows = data.split( "" )