If I want to say that the content of a file is not right, should I say:
The file has a wrong format
or
The file has the wrong format
I am not referring to file extensions. I am referring to the content. For example, if an HTML file is missing a ‘>’.
|
If I want to say that the content of a file is not right, should I say:
or
I am not referring to file extensions. I am referring to the content. For example, if an HTML file is missing a ‘>’. |
|||||||||
|
|
If it is mis- or malformatted, then its format is wrong, or it is in the wrong format. It is not in *a wrong format. |
||||
|
|
|
If the file contains the expected type of content (HTML markup in a .HTM file, Comma-separated values in a .CSV file, etc.) then it is considered to be in the right format. If, however, such a file contains lines that do not meet the standard (missing HTML tags, unclosed quotes, etc.) then I would say that it contains invalid formatting. |
|||
|
|
|
|||
|
|
|
The file doesn't own anything - this precludes the use of "has a" or "has the". The more correct term would be "Is the wrong format". I'm inclined to agree with Hellion - insofar as if an HTML file is expected, and there is a missing angled bracket (or other similar error) - I'd report that the input format was okay (HTML), but that it contained malformed tags or that it resulted in parsing errors. If on the other-hand, a (semantically correct) png file was passed to an HTML parser, I'd say that the input was the wrong format. |
|||
|
|