Solved

Writing to an output file

Posted on 2009-04-12
4
168 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
  • 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 130 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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 opening and writing to files 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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now