MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Line Numbers in Files

this might work for you

OpenRead, Skip and Read.

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


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

  • Prev by Date: Re: Input[] Function Evaluation
  • Next by Date: Re: Plotting colorfunctions over multiple parametric curves
  • Previous by thread: Re: Line Numbers in Files
  • Next by thread: Re: Input[] Function Evaluation