Assuming that you know the field names (lines contain just the values), here's an example of how you can do that using a FileDatasource + LineEntityProcessor + ScriptTransformer:
<dataConfig>
<dataSource encoding="UTF-8" type="FileDataSource" name="file-datasource"/>
<script><![CDATA[
function parse(row)
{
var rawLine = row.get("rawLine")
// Split the rawLine
// And for each field
// row.put('fieldName', fieldValue);
return row;
}
]]></script>
<document>
<entity name="jc"
processor="LineEntityProcessor"
url="file:///your.path.file.here"
dataSource="file-datasource"
transformer="script:parse">
</document>
</dataConfig>