how can I store in a variable, a string containing the EOF
character? In other words, how can I represent EOF in a python string?
Thanks in advance
how can I store in a variable, a string containing the EOF
character? In other words, how can I represent EOF in a python string?
Thanks in advance
There is no EOF character.... Usually it is just when you run out of data. If you really want one, you could just make some arbitrary string combination up, but you are probably better off just reading each line until the file is out of data.