Shell output truncated in files...

When I post the output of a shell command into a file the file often does not contain the full output command or it breaks the line. For example:

top >file.txt

In this case the output of top is beeing written to a file, but only the first X characters of each line. As it seems Linux believes it is posting the messages to a screen with limited width. How can I change it so that the full line will be postet ?

 

 

 

 

Top