I have a lab work on File input/output...I have to put in 12 names under the file name names.txt..and subdivide the names into small.txt(if the length of the name is below or equals to 5) and large.txt(if the length of the name is more then 5..)..I have done a source code but it is not working and i dont know what is wrong with it...Can someone pls tell me what is wrong with it?..My exams are coming soon so pls do help me out to clear my doubts.Thank You!

sorry i forgot to add that the names should not be entered one by one...they should be pre-set...

What's the error you're recieveing, or what problem is occuring during runtime.

hmm..its ok...I found out what is wrong...Thank You for trying to help me... :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.