Modifying the input

From: Tan Rezaei (trezaei_at_hotmail.com)
Date: 06/08/04


Date: 8 Jun 2004 08:18:25 -0700

Hi All,

I know this is proabably simple but I can't get my mind around it:
I need to read from a file that has many records.
I need to read from this file and depending on what the records say I
need to perform some certain tesks. Well I got that all figured out.

My problem is that I need to change one of the fields on the records
showing that I have already read it and setting some status code so
next time I read the file I will know if I need to do anything more
with that record.

So how do I change records in the file I am reading from? In some
instances I may even need to removed the record from the middle of the
file.

I know you're thinking that I should be using a database but take my
word that is not going to happen in the environment I am working in.
It HAS TO BE A FLAT FILE. I would love to use a DB and import the
files into it and work with them but my hands are tied.

Thanks

T



Relevant Pages

  • Re: Combobox and error 3314
    ... Keep in mind that I don't know anything about your tables, ... database when reading the answer below. ... possible to supress the system message and instead write my own? ...
    (microsoft.public.access.formscoding)
  • WORD Docs and ASP.NET
    ... I am reading a lot of info on the subject but can't really make up my ... mind on the way to attack this. ... will choose the correct address from another table in the database. ... this point I would like to generate a Word document with the formatted ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Modifying the input
    ... > So how do I change records in the file I am reading from? ... Write to a new, temporary file, while reading through the original file. ... perldoc -f rename ... > It HAS TO BE A FLAT FILE. ...
    (comp.lang.perl.misc)
  • Re: Modifying the input
    ... Tore Aursand wrote: ... >> So how do I change records in the file I am reading from? ... Change whatever suits you on the way, and finally overwrite ...
    (comp.lang.perl.misc)
  • Datagrid design
    ... I'm creating a web page with datagrid. ... My page must give a possibility to change records in database. ... I'm new in Webapplications. ...
    (microsoft.public.dotnet.framework.aspnet)