Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

RandomAccessFile Modify Help  RSS feed

 
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I have used the following code to create the file. It works.


The output is

name0
name1
name2
name3
name4
name5
name6
name7
name8
name9



i needed to change the values not considered by their size. i.e all the lines should be replaced by nam. Then i should again be able to replace the lines with larger values. I have tried that using the following code.



But i got the output as.

name0
nam

nam

nam

nam

nam

nam

nam

nam

nam

nam




Someone please help


Thanks in advance
alexander
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!