Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing to a specified location in a file  RSS feed

ms raaghu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
How to write the contents to a file in a particular position ..
example :- in a file from 0-15chars need to write the emp id and from 16-28 job description and so on..

in the above example from 0-15 its the emp id so if the emp id is of only 2 chars then the remaining chars should be
zero padded ..

please help me out in doing the same ...

It would be very much great full .

Thanks in advance
Joe Ess
Posts: 9406
Linux Mac OS X Windows
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!