ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
703 B

  1. rem Purpose: compare debug output from different systems
  2. rem Author: Howard Wulf, AF5NE
  3. rem Date: 2015-04-22
  4. rem Usage: implementation defined
  5. rem Example:
  6. rem ~/bwbasic difflogs.bas
  7. rem
  8. line input "six input file name:", A$
  9. line input "text input file name:", B$
  10. line input "diff output file name:", C$
  11. C = 32
  12. rem
  13. open A$ for input as #1
  14. open B$ for input as #2
  15. open C$ for output as #3
  16. rem
  17. do until eof( #1 ) or eof( #2 )
  18. line input #1, A$
  19. line input #2, B$
  20. A$ = trim$( A$ )
  21. B$ = trim$( B$ )
  22. A$ = left$( A$ + space$(C), C )
  23. B$ = left$( B$ + space$(C), C )
  24. C$ = A$ + B$
  25. if A$ <> B$ then
  26. C$ = C$ + "<--- DIFFERENT"
  27. end if
  28. print #3, C$
  29. loop
  30. rem
  31. close #1
  32. close #2
  33. close #3
  34. rem
  35. end