No.9240356 ViewReplyOriginalReport
<---So I wrote this shit of a program. when I run my program like this ./program <file.txt it will print everything inside this file to an output.

I really hate programming. I am a newfag programmer and have no idea how to solve this problem because I am the slow one.

If some C expert would be so awesome to explain to me word by word how do I work with data in my file? The idea of this program is to iterate through everything an user types into the command line (argv[]) AND COMPARE IT WITH THE FIRST INDEX OF DATA SO WHEN I RUN THE PROGRAM LIKE ./program B<file.txt
IT IS GOING TO PRINT ONLY THE LINES THAT START WITH LETTER B...

If someone could help me here I would get on my 4 and suck him.