Check if a file is a valid foamFile
Is there a function/method to check if a file is a well formatted foamFile? Namely, if it start by a valid header? I'm looking for something, which return a bool, then I can handle the different cases...
example 1: well formatted
In OpenFOAM's source code applications folder, you should be able to find several examples like the following, which can be seen online here:
Thank you for the tip, it works!
|All times are GMT -4. The time now is 17:13.|