#txt file input and output

1 messages · Page 1 of 1 (latest)

grizzled ridge
#

if it's linux, you can just pipe the file to program

#
cat myfile.txt | java myjavaprogram
spiral pier
#

no like i have to make a program that takes in a text file, does some stuff, then gives an output file

#

its gitbash

#

i jsut need to know the code to make it to where it accepts those two arguments in the command line

grizzled ridge
#

oh

#

just get the strings from the String[] args of your main method

spiral pier
#

how would i write the file reading part

sour tundra
spiral pier
#

i got it now