Writing a line break in csv file. Curiosities of MSN today
Dear: What you should
be very simple, it is sometimes still quite complicated, not for lack of knowledge but for lack of documentation.
When we import data from a query in a csv file, and wish to incorporate the line break at the end of it, we must encode it as follows. (I summarized quite the example in line fwrite, you might as well write the string they want and make an append to the end of this.)
fwrite ($ fp, chr (13). Chr (10)); (Where $ fp contains the file pointer, and chr (13). Chr (10) is equivalent to \\ r \\ n.)
I hope you learn, cheers! Guille
0 comments:
Post a Comment