Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Line Numbers in Files
Replies: 2   Last Post: Jun 30, 2012 5:20 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ulrich Arndt

Posts: 53
Registered: 10/1/09
Re: Line Numbers in Files
Posted: Mar 1, 2012 5:41 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

this might work for you

OpenRead, Skip and Read.

Example
table = RandomInteger[1000, {1000, 2}];
Export["./test.csv", table, "CSV"]
table[[123]]
str = OpenRead["./test.csv"]
Skip[str, Record, 122]
Read[str, Record]

Ulrich

Am 29.02.2012 um 13:24 schr
ieb Don:

> I am getting a warning
> regarding one of the packages I have
> written which says the following:
>
> Syntax::com :
> Warning : Comma encountered with no adjacent expression. The
> expression will be treated as Null. (line 2333 of
> "AFin6`UserFuncs`XFdData1`").
>
> Is there a way to go to the
> a specific line number in a file? Line 2333 above
> is impossible to locate otherwise.
> With all the amazing functionality in Mathematica,
> sometimes extremely simple things that
> are immediately obvious in other languages turn out
> to be very difficult to find out how to do.
>
> Thank you.
> Don
>






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.