1.11M Members

Small text conversion program

 
0
 

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

 
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.
You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article