I'm reading a string from a database and need to write to a file, which needs to be fixed length. How do i put the 10 character field that I read from the db to the file and then leave the next 15 fields blank before I start the next one ? Also, how do I left justify integers with right filled zeros for the same file ? Thanks (yes.. in advance :-)
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
I can't take it! You are too smart for me! Here is the tiny ad:
Gift giving made easy with the permaculture playing cards