New answers tagged

4

Beginning with Mathematica 10 there is a new function ReadString to get the (current) available data from an open socket connection by setting EndOfBuffer as terminator. But there has to be at least one finished read to the stream before ReadString[socket, EndOfBuffer] will return the next chunk. Basic stream function StreamPosition, SetStreamPosition will ...


1

Using undocumented FrontEnd`ExportPacket command you can get exactly the same formatting as with Copy As ► Plain Text (i.e. without the line breaks and extra spaces): s = First[FrontEndExecute[FrontEnd`ExportPacket[Cell[BoxData[ToBoxes[a]]], "PlainText"]]] {-11 \[Psi]^2 \[Lambda][1]+6 \[Psi] \[Lambda][2],35 \[Psi]^2 \[Lambda][2],11 \[Psi]^2 \[Lambda][1]...



Top 50 recent answers are included