How to print the blank line in the file?

is this ok for you?

while inp != "" || !eof(inn)
    println(inp)
    inp = readline(inn)
end

or this form

begin
inn = open("inp.txt", "r")

while  !eof(inn) 
    inp = readline(inn)
    println(inp)
end
end
1 Like