Description: Program is running, start with the keyboard input a text file name (convention: ≤ 127 byte characters, can contain the path) and a string (convention: the number of characters ≤ 20 bytes, which does not contain spaces, TAB, etc., hereinafter, referred Str), and then displayed on the screen contents of the file. Required to display the content, it output file on the screen the number of lines (lines between \ n as a separator, but indefinite length of each line were ≤ 200 bytes), the string Str 1st in the document appear the line number and line number of the last occurrence (search is not case sensitive, does not cross to find, if not found, the line number is displayed as-1).
Note that the program can not use the library function fgets or use the same name as variables, functions, word, line numbers starting at 1 meter.
Click here to download the program runs test file Test.txt. Programming Available
To Search:
File list (Check if you may need any files):
sajkdk
......\ASC12.FON
......\Debug
......\.....\sajkdk.exe
......\.....\sajkdk.ilk
......\.....\sajkdk.pch
......\.....\sajkdk.pdb
......\.....\sp.dat
......\.....\test.obj
......\.....\vc60.idb
......\.....\vc60.pdb
......\sajkdk.dsp
......\sajkdk.dsw
......\sajkdk.opt
......\sajkdk.plg
......\test.c
......\Test.txt