Thats one way but then there is trade off that you are asking people to download and see and I would add that you apply your judgement.
I would add the files and not file as attachment and have the file content in the post as a reference something like
I am having trouble in some function
Which is used from
Code:
SomeOtherFunctionsLikeThis
and for your reference here is complete flow of program