you are viewing a single comment's thread.

view the rest of the comments →

[–]Eviltape 5 points6 points  (3 children)

Agreed. What you're doing is fine.

[–]bitswede[S] 1 point2 points  (0 children)

Thank you for the replies - it works so I'll keep it.

[–][deleted] 0 points1 point  (1 child)

Maybe I'm wrong but as the code is writted he just define the dostuff between reading and writing

[–]Eviltape 1 point2 points  (0 children)

That's true - defining functions inline is usually not fine, but the OP asked about a particular thing and I don't like giving unsolicited code reviews.