Apr 22, 2013, 7:32 PM
Post #1 of 10
taking alternate values from textfile
I got stuck with taking alternate lines like 1,3,5...from a text file and print those lines with integers eg:1,2 and add them,print those integers from input text file in first line and there output in second line,print the third line integers from input text file and print output in fourth line...in to other text file.
I don't know how to select the alternate lines..and do calculations like a+b.Any ideas will be helpful
thanks in advance