F
F
Foggysoap2015-06-07 23:21:46
ruby
Foggysoap, 2015-06-07 23:21:46

How to find a certain line in a file and add a new one to it?

Actually, subject. How to find a string with a certain set of characters and add another one to it? And besides, it's all in the file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Vsk, 2015-06-08
@viktorvsk

Write:
1. Read file
2. Find line
3. Add line
4. Save file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question