dcsimg

Search:

Type: Posts; User: DataMiser

Search: Search took 0.04 seconds.

  1. Replies
    14
    Views
    852

    Re: Add a string if not exist in text file

    Sorry, I'm not going to go search for a link for you. I showed you the concept, the code needed is simple and easy to write. Why don't you at least try to write it yourself. You will learn much more...
  2. Replies
    14
    Views
    852

    Re: Add a string if not exist in text file

    It is very basic code, tons of examples out there, also examples in the online help..

    pseudo code


    If file exists
    Open file for input
    Do Until EOF
    LineInput NextLine
    ...
  3. Replies
    14
    Views
    852

    Re: Add a string if not exist in text file

    You should not need to add the newline in there, unless of course you want a blank line to appear between every line.

    Print # ..... sends a newline at the end by default. It can be suppressed by...
  4. Replies
    14
    Views
    852

    Re: Add a string if not exist in text file

    So your real question has nothing to do with duplicate data but rather keeping it from overwriting the file each time.
    When you use open for output that tells the system to create the file if it...
Results 1 to 4 of 4



Featured


Click Here to Expand Forum to Full Width