• Searching a file for text

    From Willowolf@VERT to All on Sun Jan 13 09:29:00 2002
    Is there a way to search a file for a certain word or phrase using Baja?

    If I was to write to a file, I want to check that file for duplicate phrases before the write is done to eliminate dupicate entries. Is this possible in Baja?

    I've read through the File I/O functions in the Baja Documentation and found nothing that will search a file for a specific word or phrase.

    Thanks,
    \\/

    ---
    Synchronet Wolf Grotto = Las Vegas, Nevada USA = wolfgrotto.darktech.org
  • From Amcleod@VERT to Willowolf on Wed Jan 16 09:25:04 2002
    RE: Searching a file for text
    BY: Willowolf to All on Sun Jan 13 2002 05:29 pm

    Is there a way to search a file for a certain word or phrase using Baja

    I think you will have to build your own search function out of File I/O primitives.
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Digital Man@VERT to Willowolf on Wed Jan 16 18:53:03 2002
    RE: Searching a file for text
    BY: Willowolf to All on Sun Jan 13 2002 05:29 pm

    Is there a way to search a file for a certain word or phrase using Baja

    If I was to write to a file, I want to check that file for duplicate phrases before the write is done to eliminate dupicate entries. Is this possible in Baja?

    I've read through the File I/O functions in the Baja Documentation and found nothing that will search a file for a specific word or phrase.

    The only Baja function that will do this is the trashcan function, but it will only search text/*.can files.

    -Rob
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Amcleod@VERT to Digital Man on Wed Jan 16 22:49:02 2002
    RE: Searching a file for text
    BY: Digital Man to Willowolf on Thu Jan 17 2002 02:53 am

    Is there a way to search a file for a certain word or phrase using B

    The only Baja function that will do this is the trashcan function, but it wi only search text/*.can files.

    Ingenious!
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Willowolf@VERT to Digital Man on Wed Jan 16 23:00:00 2002
    [Reply to]: Searching a file for text
    [Typed by]: Digital Man to Willowolf on Thu Jan 17 2002 02:53 am

    RE: Searching a file for text
    BY: Willowolf to All on Sun Jan 13 2002 05:29 pm

    Is there a way to search a file for a certain word or phrase using B

    If I was to write to a file, I want to check that file for duplicate phrases before the write is done to eliminate dupicate entries. Is this possible in Baja?

    I've read through the File I/O functions in the Baja Documentation a found nothing that will search a file for a specific word or phrase.

    The only Baja function that will do this is the trashcan function, but it wi only search text/*.can files.

    -Rob

    I'll read the docs on it, thanks.

    \\/

    ---
    Synchronet Wolf Grotto = Las Vegas, Nevada USA = wolfgrotto.darktech.org