looping thru filenames in a directory

Hi,

i am very new to UNIX, i am trying to loop thru the files in a directory.

I got the filenames into a variable using

$files=`ls`

Here $files will contain

<filename1> <filename2> <filename3>

I want to get one filename at a time and append it to some some text.

forexample,
text1\filename1
text1\filename2
text1\filename3

Any idea hw i can do this?

:confused:

files=`find . -type f`

for simplefiles in $files
  do
     echo $simplefiles >> what u want to do
  done

Thanks
Namish