Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Writing to an output file

Posted on 2009-04-12
4
Medium Priority
?
175 Views
Last Modified: 2012-05-06
a)      Read the file A o/p-> aaaaaaabbbbbbb&&&..ppppppp

b)      Read the file B o/p -> 11111112222222&&&&00000001111111

 2. The o/p of the file c based on the outputs of the files a & b. The output of the file C                                                                
      should be like using interleaving techniques.

            aaaaaa1111111bbbbbbb22222222&&&&.

  3. The output of the file D should be the o/ps of the above 3 files

aaaaaa1111111aaaaaa111111&&&&..bbbbbb222222222bbbbbbbb2222222&&&&&..



This is what the requirement for an interview.Please help me to solve this problem in C language

0
Comment
Question by:mani_tecit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 53

Expert Comment

by:Infinity08
ID: 24128395
>> Please help me to solve this problem in C language

Ok. What is the problem you have with it ? Did you give this a try and get stuck somewhere ? What's your level of experience with C (do you for example know how to do file I/O) ?
0
 

Author Comment

by:mani_tecit
ID: 24128542
No experience at all with C language.Coming from accounts domain.

Please help me yaar..
Thanx in advance
0
 
LVL 53

Accepted Solution

by:
Infinity08 earned 390 total points
ID: 24128564
If you have no experience with C, may I suggest to start with reading a basic tutorial about C to teach you the basics ? Because otherwise, no matter what I say will probably not help you very much. Here is one if you're interested :

        http://www.cprogramming.com/tutorial.html#ctutorial

If you're serious about learning C, I suggest buying a book, and reading through that, but most of all, do a lot of exercises, and keep practicing. Here are some very good books about C :

        "The C Programming Language" by Kernighan and Ritchie (second edition) (THE reference guide)
        "A Book on C" by Kelley and Pohl (a pretty good and complete book to learn from)

Regarding your current question, the idea would be to read both input files, recognize the boundaries where the text is supposed to be split up, and write the correct output to both of the output files.
0
 

Author Comment

by:mani_tecit
ID: 24129334
Ok.Thanx infinity
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question