• Post Reply Bookmark Topic Watch Topic
  • New Topic

writing in and appending to a file  RSS feed

 
mahi Yalamanchili
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My input file includes data from both males and females. My code below replaces a 'male string' with the key and values and writes into an existing file for 'male'. How can I do the same for females and write into a different 'female string' in the same program?

I am new to this, Sorry If I am confusing you!!! But I want something like

"going through my input----if it is a 'male', replace the 'male string' with corresponding key and values-------else if a 'female', replace the 'female string' with corresponding key and values". Thank You.


 
Kyle Redding
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try and break your code down line by line to figure out what is happening. If you do that it shouldn't take you very long to figure out how to do what you need to do, everything is in the code your teacher gave you.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!