Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print file
#4
Quote:Do you really need something so complicated?
no i guess not

Code: (Select All)

pfile$ = _OpenFileDialog$("Select file to print", _CWD$, "*.bas|*.txt", "text files", 0)
If pfile$ <> "" Then
If _FileExists(pfile$) Then
Open pfile$ For Input As #1
Line Input #1, temp$
Print temp$: LPrint temp$ 'print to screen and printer
End If
End If

Quote:What's wrong with something as simple as the above? Read a line, print a line?
nothing

in my defense, i have a copy of the file in an array to process further and your code doesn't Smile
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
print file - by bplus - 04-06-2024, 06:00 PM
RE: print file - by Dimster - 04-07-2024, 01:58 PM
RE: print file - by SMcNeill - 04-07-2024, 07:22 PM
RE: print file - by bplus - 04-07-2024, 08:51 PM
RE: print file - by Dimster - 04-08-2024, 06:03 PM
RE: print file - by bplus - 04-08-2024, 06:15 PM
RE: print file - by Dimster - 04-08-2024, 07:58 PM
RE: print file - by bplus - 04-08-2024, 08:29 PM
RE: print file - by Dimster - 04-08-2024, 09:07 PM
RE: print file - by SMcNeill - 04-08-2024, 09:49 PM
RE: print file - by Dimster - 04-09-2024, 01:03 PM
RE: print file - by eoredson - 04-27-2024, 03:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PrintW - print a long string, breaking it at the last space or hyphen before col. 79 TDarcos 21 4,082 04-22-2024, 09:52 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)