adspace


What is the basic function to search files for lines (or other units of text) that contain a pattern.

Answer Posted / Abhinav Asgola

The basic function is file(filename, mode); and then use the functions like flock(), rewind(), fseek() to move through the file and fgets() or fscanf() to read the content line by line.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current stable version of php?

1122


How to create a web form?

1109


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1076


How to calculate the difference between two dates using php?

1142


What is trait in php?

1065


What sized websites have you worked on in the past?

1084


Tell me what kind of things have you done on the social side?

1063


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1987


What is difference between static and final in php?

1107


What does $_files means?

1162


how to detect a mobile device using php

1172


sort term descripttion form, report and uery

2254


List some features of php that are deprecated in php7?

1021


Name and explain five of the PHP error constants?

1033


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2174