Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
He4dShOt
Dec 11th, 2014
217
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
with
open
(
'file'
,
'r+'
)
as
f:
...
puppa
=
f.
read
(
)
.
splitlines
(
)
...
f
.
seek
(
0
)
...
for
w
in
puppa:
...
f
.
write
(
w.
replace
(
'text'
,
'new_text'
)
+
'
\n
'
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
*Artists / Musicians
7 hours ago | 1.66 KB
Untitled
15 hours ago | 2.59 KB
GSA
23 hours ago | 1.91 KB
Untitled
1 day ago | 12.81 KB
Untitled
1 day ago | 10.50 KB
Untitled
1 day ago | 8.75 KB
Untitled
1 day ago | 14.36 KB
Untitled
1 day ago | 5.60 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!