0

Hi I have data in the following format that I need to write to a csv file.

Student1 Mark1 Mark2 Mark3 Mark4 Mark5
Student2 Mark1 Mark2 Mark3 Mark4 Mark5
Student3 Mark1 Mark2 Mark3 Mark4 Mark5
Student4 Mark1 Mark2 Mark3 Mark4 Mark5
Student5 Mark1 Mark2 Mark3 Mark4 Mark5

I am writing my code in C. Any ideas on how I can do this?

2
Contributors
1
Reply
16
Views
5 Years
Discussion Span
Last Post by Ancient Dragon
0

A csv file format is just comma or tab separated fields. If a field may contain commas or tabs then the field should be enclosed in quotes

For example:

Joe,90,100,50,95,98
Mark,40,50,60,70,80,90

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.