Easy formatting questions
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 517 articles for 0.017 sec
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: Dick Hendrickson
Date: Apr 8, 2007 18:02

... vector(1:10) End program test_format Some questions... - If I change the Read statement to...It's not directly possible in free format because something like 010101 is an integer... "engineering moment" ;-) I originally posed the question as delimited binary bits (space-bit- space format). I would prefer... the last line. - Is there an easy way to get the program to ...
Show full article (6.08Kb)
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: Louis Krupp
Date: Apr 8, 2007 16:01

... free advice? Sure, you could do this in Fortran, but it might be easier to write a script in something like Perl to read the file and rewrite it in a format which a very simple Fortran program could read. You could change a record with 24 bits like this: abcdefghijklmno101010101111000010100000 to a pair of records like this: abcdefghijklmno 24 101010101111000010100000 Then you...
Show full article (1.03Kb)
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: nospam
Date: Apr 8, 2007 15:46

...Well, if you are asking a question about how to read a specific ... I don't understand what the question is. If you are just trying ...fine. Or you can use explicit formats. If you do, for example, ...not, you need to clarify the question. For input, I now don't...limits on record sizes and thus formats that they would accept, but I...make sure you follow the same formatting rules both times. And you don...
Show full article (3.80Kb)
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: sk8terg1rl
Date: Apr 8, 2007 14:21

... vector(1:10) End program test_format Some questions... - If I change the Read statement to ... "engineering moment" ;-) I originally posed the question as delimited binary bits (space-bit- space format). I would prefer... larger than 10000 would get truncated. Formats revert when they come to their ... the last line. - Is there an easy way to get the program to ...
Show full article (4.27Kb)
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: sk8terg1rl
Date: Apr 8, 2007 14:08

... get truncated. - Is there an easy way to get the program to...much required to use an explicit format. Consider the input record: ABCDEFGHIJKLMNOP011010101010101010100 Actually...non-advancing I/O and explicit formats: read(1, '(a15)', advance = 'no') ... now I'll use explicit formats but I hate having to ... to explicit with array sizes, formats, etc. "I conclude that there ...
Show full article (3.03Kb)
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: sk8terg1rl
Date: Apr 8, 2007 14:03

... columns (space/bit/space). The question was originally pitched for reading in this "space-bit- space..." format, but I decided to take ... case of "bit-bit-bit...." format as vi produces a confusing...get truncated. - Is there an easy way to get the program...output, either 1. Generate the format using an internal write such...advancing I/O or a format string generated as described above...
Show full article (3.96Kb) · Show article thread
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: sk8terg1rl
Date: Apr 8, 2007 13:46

... an input file that has a mix of characters & integers. The format can be assumed to be characters for 15 columns and a binary string of unknown/variable length. The format of the input file 'test.txt': |-CHARAC15-------|-----------INTEGER... You cleared the first hurdle of asking a good programming question by posting what looks like a complete code. But you didn...
Show full article (1.94Kb)
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: Dick Hendrickson
Date: Apr 8, 2007 12:28

...string of unknown/variable length. The format of the input file 'test.txt...1:10) End program test_format Some questions... - If I change the Read statement...s not directly possible in free format because something like 010101 is an...larger than 10000 would get truncated. Formats revert when they come to their...the last line. - Is there an easy way to get the program to...
Show full article (3.04Kb) · Show article thread
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: James Giles
Date: Apr 8, 2007 12:20

... I want to read it in as free format if possible, so that if the binary ...10000 would get truncated. - Is there an easy way to get the program to initially parse...s pretty much required to use an explicit format. Consider the input record: ABCDEFGHIJKLMNOP011010101010101010100 By the rules... using non-advancing I/O and explicit formats: read(1, '(a15)', advance = 'no') a15 do ...
Show full article (2.29Kb) · Show article thread
Re: Easy formatting questions :-)     

Group: comp.lang.fortran · Group Profile · Search for Easy formatting questions in comp.lang.fortran
Author: nospam
Date: Apr 8, 2007 12:07

... <sk8terg1rl_2006@yahoo.co.uk> wrote: The format of the input file 'test.txt': ...want to read it in as free format if possible, so that if the...would get truncated. - Is there an easy way to get the program to initially...... For output, either 1. Generate the format using an internal write such as ...either non-advancing I/O or a format string generated as described above. You...
Show full article (2.80Kb) · Show article thread
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next