write a java program that reads integers only from a text file"myData.txt", square the integers and then ends the result to an output file "output.txt".the program should be able to skip text characters in the file and square only integers

No. At the very least, try to do it yourself.
The reason you were given this assignment, is because your teacher wants to find out whether you know how to do this.

We are willing to help you improve your coding skills and understanding, not to help you cheat.

The community rules to which you agreed upon registering on Daniweb state:

Do provide evidence of having done some work yourself if posting questions from school or work assignments

So write what you can, and ask specific questions on how to improve it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.