In a Mathematica notebook, I enter and evaluation the following code, : url = “Alphabetical Listing—Wolfram Documentation”
fileName = “C:\Projects\Wolfram\AlphabeticalListing.txt”
links = Import[url, “Hyperlinks”]
lEx = Export[fileName, links]
The following is a partial example of what I get for output from the “links=” line above:
A partial example of the output in the text file for the “lEx=” line above is:
{" Index of All New Functions ", {{“AbelianGroup”, “AllowedDimensions”, “Arg”}, {“Abort”, “AllowGroupClose”, “ArgMax”}, {“AbortKernels”, “AllowReverseGroupClose”, “ArgMin”}, {“AbortProtect”, “AlphaChannel”, “ARIMAProcess”},
Obviously, the two are not the same. How do I output to a text file, these hyperlinks from the Import[] line?
If you are using an earlier version of Mathematica than 9 and it’s having a hard time figuring out the export format, you might want to be more explicit by using
lEx = Export[fileName, links, "Lines"]
But what you are getting suggests to me that you had actually executed