Lab3 Files
Lab3 Files
Assignments:
Using C language for Unix environment implement the following task:
Task 1.
In arbitrary plain text file find all decimal values which are on even positions and substitute them
with their binary representations. (consider 0 as even);
Task 2.
For arbitrary plain text file find number of letters “A or a”, “B or b” and “C or c” in this
file.
Task 4.
When first started, your program must check to see if the user provided a command-line
argument. If so, then your program must treat the command-line argument as a file name,
and repeatedly must:
Notice:
To work with files you can use only open, read, write, lseek, close functions.