Question: Given a string S and a text file, find the specified string and, if such string exists in the file, return its position (line number

Given a string S and a text file, find the specified string and, if such string exists in the file, return its position (line number and position in this line)

1. Create text file (use notepad) with some lines of data according to the task variant; 2. read and display content of the file; 3. displaying the content of the file should be implemented as function to get the highest grade; 4. process the file according to the task variant; 5. rewrite the file with new content according to your task variant.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!