shortest progam to scan a line and print it using befunge! well, I'm newly introduced to befunge.
it seems to be an amazing language but a bit hard to start with! anyway after about 2 hours of hard work I've created a code which could read a line from stdin and write same line into stdout(I'm using line -1 as buffer in this code):

0&gt; :~:a-#v_$$v vg-10:-1&lt; &gt;$&gt;:#,_@
 ^+1p-10\&lt;   &gt;0&gt;\:    #^_^


since I'm new to this language I wanted to know if there is a shorter code to do such a thing.
I'm currently using Rc/funge-98 v2 interpreter. note that none-trailing whitespaces are counted in your code.
Befunge-98, 4

~,#@

Try it online!

It works because ~ acts like r when there is no more input (credit to David Holderness for finding this in the funge-98 spec)