Alchemy - A word Game
#31
@bplus: I fiddled around with the snippet, and eventually got it to compile ok with this code:
Code: (Select All)
For a = 1 To 26
    filename$ = Chr$(a + 64)
    newfile$ = Chr$(a + 64) + "new"
    Open filename$ For Input As #1
    Open newfile$ For Output As #2
    While Not EOF(1)
        Input #1, fline$
        If _Trim$(fline$) <> "" Then
            Print #2, fline$
        Else
            deletedlines = deletedlines + 1
            Print filename$; deletedlines; "  ";
        End If
    Wend
    Close
Next
Close
and the lines were removed! Great stuff; thanks. Not sure what was different, but the method you gave worked really well.
I found in the meantime that the Z file was not there (on my copy) so I downloaded that and treated it as well. I'll upload the reduced files in a few minutes.
(yes, I remembered to change the filenames back to just one char).
Reply


Messages In This Thread
Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 04:12 AM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 05:13 PM
RE: Alchemy - A word Game - by vince - 05-07-2022, 07:48 PM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 08:12 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 11:06 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 11:19 PM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 11:32 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 11:33 PM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 11:40 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-07-2022, 11:40 PM
RE: Alchemy - A word Game - by bplus - 05-07-2022, 11:42 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 12:00 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 12:21 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 12:48 AM
RE: Alchemy - A word Game - by bplus - 05-08-2022, 02:36 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 04:40 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 04:43 AM
RE: Alchemy - A word Game - by gaslouk - 05-08-2022, 09:03 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-08-2022, 09:50 AM
RE: Alchemy - A word Game - by bplus - 05-08-2022, 03:02 PM
RE: Alchemy - A word Game - by bplus - 05-08-2022, 03:10 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-11-2022, 06:22 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-09-2022, 12:13 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-09-2022, 01:31 AM
RE: Alchemy - A word Game - by bplus - 05-09-2022, 03:21 AM
RE: Alchemy - A word Game - by PhilOfPerth - 05-11-2022, 06:35 AM
RE: Alchemy - A word Game - by bplus - 05-09-2022, 03:31 AM
RE: Alchemy - A word Game - by bplus - 05-09-2022, 03:39 AM
RE: Alchemy - A word Game - by bplus - 05-09-2022, 08:39 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-09-2022, 10:56 PM
RE: Alchemy - A word Game - by PhilOfPerth - 05-11-2022, 07:27 AM



Users browsing this thread: 2 Guest(s)