You can select the points from the plot and write it to file with Export:
pl = Plot[Sin[x], {x, 0, 2 Pi}];
The Points are arguments to a Line directive in the Plot function:
Position[pl, Line]
output is: {{1, 1, 3, 2, 0}} the zero is the Head of the Line directive, the points are the argument:
points = pl[[1, 1, 3, 2, 1]];
Alternatively you can also produce the {x,y} pairs directly:
points = Table[Sin[x], {x, 0, 2 Pi, 0.1}];
Now I use export to write it all to a file
Export[< output.file >, points, "Table"]
Please note, that there is a typo in your code. You should use square brackets to give function argumens: Sin[x] instead of Sin(x)
Edit:
To get {x,y} pairs from a list of x-positions you can for instance use:
xypairs = {#, Sin[#]} & /@ points
/@ is a shorthand notation for Map.
To calculate it directly in the Table command replace Sin[x] by {x,Sin[x]}.
Here is another method to get the points directly from the plot using EvaluationMonitor:
{pl, points} =
Reap[Plot[Sin[x], {x, 0, 2 Pi},
EvaluationMonitor :> Sow[{x, Sin[x]}]]];
{ x, Sin[x] }values together as per your question update. – image_doctor Jun 19 '12 at 10:58