hi ,
Can someone help me with a program if possible .. I have similar files with file name like prog1.in , prog2.in .... progr100.in which has some 47 rows of data in a txt format (almost same files ). I have another file name file1.txt having 100 rows just 0 or 1 . I want a program that reads file1.txt row by row each associated with prog1.in,prog2.in.... prog100.in and if the row in file1.txt is 1 I want no change in ".in " file to be same and if its 0 that tht row numbers( suppose x) progx.in to be modified . The file is modified something like.. I want to delete 7 rows , 1st row being the row where i find the word "UPTAKE"..
prog77
0
Newbie Poster
Recommended Answers
Jump to Posthi ,
Can someone help me with a program if possible .. I have similar files with file name like prog1.in , prog2.in .... progr100.in which has some 47 rows of data in a txt format (almost same files ). I …
Jump to PostI have some some 47 rows... but from row where i find UPTAKE i have all 7 rows same . .. in all 100 files... rest is some data .. which has nothin to do with modification ..We can assume any file.. with so many rows ..
Keep in mind, …
Jump to Posti cant write the whole content in file .. but here are few lines and one line has word UPTAKE i was talking about ..
Ks Nu Beta Henry SnkL1 SnkS1 SnkG1 SnkL1' SnkS1' SnkG1' SnkL0 SnkS0 SnkG0 Alfa
0 0 1 0 0 0 0 0 0 0 0 …
All 9 Replies
VernonDozier
2,218
Posting Expert
Featured Poster
prog77
0
Newbie Poster
VernonDozier
2,218
Posting Expert
Featured Poster
prog77
0
Newbie Poster
VernonDozier
2,218
Posting Expert
Featured Poster
prog77
0
Newbie Poster
VernonDozier
2,218
Posting Expert
Featured Poster
prog77
0
Newbie Poster
VernonDozier
2,218
Posting Expert
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.