How do i read a notepad file in java?

OVERTONE picture OVERTONE · Jan 13, 2010 · Viewed 18.7k times · Source

im trying to create a restaurant system that will create food items and such from a menu.

ill be learning jdbc soon and im sure that would help but for now i think the simplest way is too create my menu in notepad.

whats the best way to line up and read from a notepad file like a menu.

please try speak clearly, im not exactly sure of all terminologies.

this one looks promising but ive no idea whats goin on.

/////////////////////////////////////////////////////////////////////

im still stuck with this.

ive decided too make a seperate mthod for reading the file.

ive tried every example i can think of. could someone just show me an example of how too define a files classpath.

if i type menu.txt it just doesnt work.

Answer

oliver31 picture oliver31 · Jan 13, 2010

Have a look at Sun's Java Tutorial