Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing to a specified location in a file  RSS feed

 
ms raaghu
Ranch Hand
Posts: 71
  • 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
Raghu
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!