Hi Again

Sorry I am so thick, when I am a java wizard I will answer questions instead of asking them !!

This little snippit of example code duplicates text files, but on closer inspection it is pushing integer ascii values around rather than actual characters (c is an integer variable)

I want to deal with a stream of actual characters rather than integers, how do I do that please ? or shall I just search the web for the java equivalent of the good old qbasic chr$() function ?

I thought Java was unicode based, yet I have looked at the values of c in this proglet and they are plain old ascii, so what is going on I wonder ?? as an aside, how do I handle charactars as unicode values rather than 'x' style charactar literals ?

import java.io.*;

public class Copy {
public static void main(String[] args) throws IOException {
File inputFile = new File("sample.txt");
File outputFile = new File("outagain.txt");

FileReader in = new FileReader(inputFile);
FileWriter out = new FileWriter(outputFile);
int c;

while ((c = in.read()) != -1)