We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,931 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Small text conversion program

Hi all
I'm looking for someone to make a small program that will take data from one text file & write it inside an existing text file.

The file that is written into need to put the data in just the right place.

I have an existing app that was done for me a while back that dose about 90% of what needs to be done, if that helps.

I can be reached @
626-812-5217
sjgetty@gmail.com

Thanks
Clark

2
Contributors
1
Reply
1 Day
Discussion Span
3 Years Ago
Last Updated
2
Views
cgetty
Newbie Poster
1 post since Jan 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Is your program a console app?
Maybe I can help you,just want to know that where is your code?
Pascal or delphi?

I made one console app in pascal

program text_files;
uses crt;

var FromFile,ToFile :text;
      i,num:byte;

begin
  clrscr;
  (*we create two files*)
  assign(FromFile,'c:\From.txt');
  assign(ToFile,'c:\To.txt');
  rewrite(FromFile);
  rewrite(ToFile);
  randomize;
  (*ok,let's write some lines to the From.txt*)
  for i:=1 to 20 do begin
      writeln(FromFile,random(100)+1);
  end;
  close(FromFile);
  (*we write only the odd numbers to the To.txt*)
  reset(FromFile);
  while not eof(FromFile) do begin
        readln(FromFile,num);
        if num mod 2 = 1 then writeln(ToFile,num);
  end;

   (*last,close them*)
   close(FromFile);
   close(ToFile);
  writeln('Press enter to quit.');
  readln;
  (*created by FlamingClaw 2010.01.16*)
end.
FlamingClaw
Posting Pro
559 posts since Feb 2009
Reputation Points: 132
Solved Threads: 138
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0573 seconds using 2.65MB