This content has been marked as final. Show 3 replies
You could append spaces at the end of the file like so:
where fixed_len is the desired fixed file length and wddx_output is the deserialized wddx content.
well, i this file what i am taking about has numbers and chars. i wanted each field to be fixed length. i am not talking about file length. for example. i have name and account number filed. name is 50 chars and a/c num is 10. but the data i am getting is name only 10 chars and a/c num is only 5. now in the first row i am getting total 15 chars rather than getting 10 + 40 spaces and 5 + 5 spaces. how can i get that. do you know anything about WDDX DTD. can this be utilized here... thanks for your help.
I've not used WDDX DTD but I think it will only validate that it is the correct format, not alter it to match that format.
Maybe post the code that writes the file so myself or others can give some better advice.