Questions tagged [fixed-format]
13 questions
2
votes
1 answer
strptime handling space in fixed format string
Is there a way to get strptime() to handle fixed format time strings?
I need to parse a time string that is always on the fixed width format: "yymmdd HHMMSS",
but with the complication that leading zeros are sometimes present and sometimes not.…

cpaitor
- 423
- 1
- 3
- 16
2
votes
1 answer
How to create fixed format file using FixedFormat4j Java Library?
I am able to load files in Fixed Format but unable to write a fixed format file using FixedFormat4j.
Any idea how to do that?
public class MainFormat {
public static void main(String[] args) {
new MainFormat().start();
}
private…

fatherazrael
- 5,511
- 16
- 71
- 155
2
votes
1 answer
gfortran does not recognize comments in .h file that begin with 'c' in first column
I am trying to include a file 'a.h' into a Fortran program 'b.f'
The contents of the files are as follows:
a.h
c This is a comment
k = 10
100 format( I5 )
b.f
program test_include
include 'a.h'
write(*,100) k
end program…
user5618107
2
votes
2 answers
Combine and transpose many fixed-format dataset files quickly
What I have: ~100 txt files, each has 9 columns and >100,000 rows
What I want: A combined file, with only 2 of the columns but all the rows. then this should be transposed for an output of >100,000 columns & 2 rows.
I've created the below function…

Gaius Augustus
- 940
- 2
- 15
- 37
1
vote
0 answers
Fortran Fixed Form Line Continuation
I'm always using free form .f90 to write Fortran code, but now I have to use some fixed form .f code. As far as I know, a line continuation in the fixed format can be achieved by putting an arbitrary nonblank, nonzero symbol in column 6.
So this…

Ruizhi
- 87
- 10
1
vote
2 answers
Issues Reading the table in R
I'm trying to do read.table in R.
My data (txt file) is like the following:
a b c d e
Australia 1 2 4 3 2
United States 1 2 4 2 2
The problems with reading this table are that:
1) Line 1 only has 5 elements (a~e), as opposed to 6 elements in all…

Betty
- 11
- 4
0
votes
0 answers
Free form back to fixed form fortran
So I wrote some Fortran in the .f90 format and I need the file extension to be .f for compilation reason. Im under the assumption that ive written the fortran in iin the newest fortran 90 way and i need to convert it back to .f fortran 77 way.
…
user12577766
0
votes
1 answer
How to preserve vertical text in 'Fixed-Format' ePubs?
I'm exporting a textbook as a Fixed-Format ePub via InDesign 2020 but noticed vertical text get exported horizontally instead! Here is an example of what I mean:
Here's how it should look like:
Does anyone know how I can preserve the text…

Lloyd
- 435
- 3
- 12
- 29
0
votes
1 answer
Apache Camel Bindy: Unexpected / unmapped characters found at the end of the fixed-length record at line : 2
Getting following exception in Camel:
Exchange[
Id ID-Dell-PC-51429-1581618665098-0-4
ExchangePattern InOnly
Headers {breadcrumbId=ID-Dell-PC-51429-1581618665098-0-3, CamelFileAbsolute=false,…

fatherazrael
- 5,511
- 16
- 71
- 155
0
votes
1 answer
Changing font color in Visual Studio 2010 at 72
I would like to change the font color at 72-column width in Visual Studio 2010. All options I see have it changing at 80.
I am aware of the guide-lines option but I'd prefer to change the font color.
Any pointers are very much…

sachin
- 1
0
votes
1 answer
Error reading fixed-formats in SAS
Here are a few lines of data.
q 2016 55 59 580067.12 89453.03 74579.31 63005.34 54211.66
q 2016 60 64 826983.94119020.88 99145.49 85347.23 75223.34
q 2016 65 69 1080400.00139847.91116260.10103226.14 93063.24
q 2016 70 74…

Baltimark
- 9,052
- 12
- 37
- 35
-1
votes
3 answers
Creating txt file from a dataframe with specific fixed-width format
I have a data frame called dfGL with 22 columns and 17000 rows!
The row names are: pressure, diameter, roughness...
I want to create a txt file from this data frame such that:
1st column of dfGL starts from position 1 of the text file (Line 1…

SaraMA
- 25
- 1
- 8
-1
votes
1 answer
Doxygen recognize parameters with linebreak
I'm trying to document my Fortran 77+90 extensions files. In general, everything works fine, except for one thing. Some of my subroutines have a little longer parameter list. Because of that, they are written with linebreak to add inline comments,…

AndreH
- 19
- 4