Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • What file? What values? Please show us an example of your input and desired output. Commented Jan 28, 2014 at 16:46
  • Sorry but it is still not clear. What is in test.txt? What is this "last item" which you "cant seem to successfully change"? Also,please explain what you're actually trying to do, what's the big picture? Commented Jan 28, 2014 at 17:40
  • I don't know whether this is for an exercise and I don't want to assume; but if this is for actual production work, I think you should consider using a database rather than a flat plaintext file. Commented Jan 28, 2014 at 17:45
  • @JosephR. yes this is a exercise which i am currently stuck with. I would have use sqlite if this is a actual production env Commented Jan 28, 2014 at 17:47
  • 1
    @JosephR. thanks for your input i have specified in the question. Commented Jan 28, 2014 at 17:55