You are on page 1of 2

Files in C

Abhijit A.M.
abhijit13@gmail.com

(C) Abhijit A.M.


Shared under Creative Commons Attribution
Sharealike International License V3.0
Problem to be solved

Write a program which d.csv

Reads a string ‘name’ camp, 10.1, manoj, 2
as command line
argument warje, -1.3, abhijit, 3

Searches for the kothrud, 0.01, akbar, 5
‘name’ in a CSV file
ganjpeth, 0.12, joel, 4

Prints the lines from
the file containing 
To learn:
‘name’ as third column 
File handling
E.g. 
String processing
>./program abhijit d.csv 
Command line arguments
warje, -1.3, abhijit, 3
The second line is the
output with the given
file

You might also like