For Programmers: Free Programming Magazines  


Home > Archive > Fortran > January 2008 > Re: Problem reading data from a file (encounter EOF after second









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Problem reading data from a file (encounter EOF after second
dpb

2008-01-29, 7:27 pm

Richard Maine wrote:
....

> You mentioned doing it with notepad. There might be a scriptable
> command-line way to do it less manually. I know it would be easy enough
> in Unix. There's probably a simillar way in Windows, but I'm not so
> fluent in Windows stuff like that.


Hmmm...otomh can't think of an easy way to get a control character at
the command line in a standard MS shell. In the JPSoftware shells
there's an char[] function so something like (untested)

echo %@char[13] >> file.dat

should work. Lacking that, creating a file w/ just the CR in it

copy file.dat+crfile.txt

would suffice I think in a MS shell.

All in all, much better to fix the problem at the source, I agree.

--


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com