Hello, I am fairly new to c and c++ in general. I wanted to know how to
read a file called "users.dat." The format goes as follows:
#username, password, email, homedirectory, shell
Root,somepassword, rla...@co..., C:\, bash
Rlangschultz, somepassword, rla...@co...,
C:\Home\rlangschultz,bash
I also have a file called groups.dat which I want to read from
#groupid, groupname, username, grouphome
500, Administrators, root, C:\
I basically want to do a search for each field. I want to be able to
print the found results to the screen, and then select the user, or
group for modification. Can someone help or give some kind of example.
I also need to know how to use arguments in a program.
|