Reading data from .raw file in Mathematica
===

I'm trying plot graphs using .raw files containing sets of y coordinates in Mathematica. I'm unsure what to type to actually refer to the data in the files directly - I'm currently using 'data' and am unsure if this is correct.

This is the code I have:

        SetDirectory[$HomeDirectory <> "/Documents/Project/Work/Output"]
        alldirs = FileNames["deBB-*"]
        alllocdata = {};
        Do[
           SetDirectory["./" <> alldirs[[idir]]];
           Print["--- working on " <> (dirname = alldirs[[idir]])];
           allfiles = FileNames["T-*.raw"];
           Do[
              Print["   --- working on " <> (filename = allfiles[[ifile]])];
              ReadList[filename, Number];
              AppendTo[alllocdata, data];
              Print[ListPlot[data, Frame -> True, PlotRange -> {0, 2000}, 
              DataRange -> {0, 10000},
              AxesOrigin -> {0, 0}]], {ifile, Length[allfiles]}
           ];
           SetDirectory[ParentDirectory[]],
           {idir, Length[alldirs]}
        ]

I've been getting this error:

        ListPlot::lpn: data is not a list of numbers or pairs of numbers. >>

Any help would be appreciated.