Hi, i'm totally lost.
Im trying to create a program that reads a file and then changes some text in the file. i've got a couple approaches to this problem but i cannot find the resources nessesary for me to complete any of these. if anyone could help i'd greatly appriciate it.
So these are the challenges:
I:
Read from text file
search for specific words
replace (delete then add, etc.)
close file
send file to printer.
II:
open file
write the text to file including printer escape codes to bold and change txt
size and maybe txt font
close file
send file to printer
III:
open to suggestions on other approaches to this problem.
I found out how to open, close, write to, and print file but i cannoth find how to replace words.
the codes that i am finding on how to seek for txt i don't quite understand. if anyone could send an example i'd appriciate the help
Thx
V
Im trying to create a program that reads a file and then changes some text in the file. i've got a couple approaches to this problem but i cannot find the resources nessesary for me to complete any of these. if anyone could help i'd greatly appriciate it.
So these are the challenges:
I:
Read from text file
search for specific words
replace (delete then add, etc.)
close file
send file to printer.
II:
open file
write the text to file including printer escape codes to bold and change txt
size and maybe txt font
close file
send file to printer
III:
open to suggestions on other approaches to this problem.
I found out how to open, close, write to, and print file but i cannoth find how to replace words.
the codes that i am finding on how to seek for txt i don't quite understand. if anyone could send an example i'd appriciate the help
Thx
V
Comment