Results 1 to 5 of 5

Thread: A text editing Question

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 1999
    Location
    Skudeneshavn, Norway
    Posts
    38

    Talking

    Hi

    My name is Chris, and I am building a small
    prog that hopefylly will rename MP3 files
    with just reading the content of a TXT file
    where the song titles are.

    There will have to be some rules what this file
    should look like, in order to rename the right file.

    ex. Title.txt

    01. Title.mp3
    02. Title.mp3

    and the mp3 files
    Track01.mp3
    Track02.mp3

    So my question is is there any of you who have done
    anything like this, or how it should be done.
    How can I grab line by line out of a text file.

    Thanks in advance

    Best regards,

    Chris Davidsen


    Christian Davidsen

    If you go to sleep with an itchy
    ass, you wake up with smelly fingers.

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    If you want to read one line at a time try the Line Input function.
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    Code:
    FF = FreeFile()
    Open PathName For Input As #FF
        Do While Not(EOF(#FF))
            Line Input #FF,Line
            ...
        Loop
    Close #FF
    It's been a while since I've actually done file ops like that ...

    Hope this helps.

    -Excalibur

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 1999
    Location
    Skudeneshavn, Norway
    Posts
    38

    Sorry I'm following

    Hi again

    the line in the code "Do While Not(EOF(#FF))" came out red
    in the sourcecode.

    I havent fooled around with input statements
    that much, so I'm not sure what I'm doing.

    I hope that you can explain the code it would be very nice
    but thanks guy for previous replies

    Chris
    Christian Davidsen

    If you go to sleep with an itchy
    ass, you wake up with smelly fingers.

  5. #5

    Thread Starter
    Member
    Join Date
    Jan 1999
    Location
    Skudeneshavn, Norway
    Posts
    38

    I fixed it

    :-)

    Chris
    Christian Davidsen

    If you go to sleep with an itchy
    ass, you wake up with smelly fingers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width