I want to set the size of each column in csv file, I want to set the size of column against the field, I don\'t know where I can do the code of to set the size? Can anyone h
You can't... a CSV file has no formatting of any kind, including column size.
If you want to control column widths, then you need to write the data to a format that does support columns widths, such as BIFF (.xls) or OfficeOpenXML (.xlsx) or OASIS Open Document Format (.ods) or Gnumeric or other spreadsheet.