This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading and Writing files

 
Nazmul Bhuiyan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone give me some example code that would help me achieve the following?
1.Read few pipe delimited files from one directory.
2.Write to a file that will contain data from the previous file and some hard coded zeros, space or something else in a flat file.
3.Then put these newly generated files into another directory.
For example:
HDR|101707|20010130|TEST|1|||||||||||||||||||||||||||
to
HDR10170719NN00000185000 test 000000000670185000379NY00670
Thanks
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nazmul,
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy
Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!