How do I read a text from a file using perl? What I have is a bunch of text inside a file and I need to read that line I want ONLY.
What I have reads the whole content inside the file.
For example:
I have a file called “file.txt”
Inside that file
I have 200 lines of texts
I want to only to read
“The script is great good job” and
“The script is bad try agin”
And...
User Profile
Collapse
-
Reading a line from a file
-
Parsing a Text File
I have this data inside a file saved as “filename.txt” with bunch of other data what I want to do is I want to sort the following data and have an output as shown below
These lines are inside my text file:
number_of_stude nts............ .... Total_by_gender 25 (F 11 => 44.0) (M 14 => 56.0)
number_of_stude nts............ .... Total_by_gender 73 (F 69 => 94.5) (M 4 => 5.5)
...
No activity results to display
Show More