• Post Reply Bookmark Topic Watch Topic
  • New Topic

RandomAccessFile Modify Help  RSS feed

 
adeeb alexander
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!