Parsing Complicated text file header
Ältere Kommentare anzeigen
I have a complicated header to a .txt file that I'm having trouble reading and parsing. I want to pull out the Sample, the Size, and the data (roughly 13000 lines). I've included a simplified version below.
What is the best way to read this?
Thank you!
Sample Virgin 1050, Sec 6, Data Sample
Geometry Rectangular (Length, Width, Thickness)
GeomFactor 27.573229 1/mm 0.041252 1/mm 1.137453 1/mm²
Size 24.2412 3.17500 0.276900 mm
SampParams 0.4000
Method Creep - Sample Rate
Comment 37 Deg, 10 MPa
Xcomment Air Bearing Gas: Air
Text
Multiplex None
InstCalDate Electronics: 2011-11-14 10:45:15 0.00006
AutoAnalysis Off
MacroFile
OrgFile C:\Folder\File
StartOfData
5.027167 37.02016 0.0000000 0.0000000
5.078333 37.02214 1762.800 0.0000000
5.127500 37.02239 2218.972 0.0000000
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Text Files finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!