Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

filesystem

How can i move back within a file ?ie: i have read a line from text file using the "readline" method,and i check whether a specific string is within it.If it is , i want to move back four lines.How can i do that?
thanks.
faustine
---------

Comments

  • Anjuna MoonAnjuna Moon Member Posts: 89
    Place all lines of the file in an array of strings, then do your processing.
  • faustinegeorgefaustinegeorge Member Posts: 351
    thanks, will do.
    faustine
    ---------


    : Place all lines of the file in an array of strings, then do your processing.
    :

  • Shawn CarterShawn Carter Member Posts: 0

    _______ { http://forcoder.org } free video tutorials and ebooks about / Java, Swift, JavaScript, Assembly, R, MATLAB, C#, Ruby, Objective-C, Perl, Go, Python, Visual Basic .NET, Visual Basic, C, PL/SQL, C++, Delphi, PHP, Scratch Dart, Scheme, F#, COBOL, Rust, Erlang, D, Prolog, Bash, Hack, Kotlin, Awk, ML, Apex, Ada, Clojure, Crystal, FoxPro, SAS, Alice, Scala, ABAP, LabVIEW, Fortran, Logo, Lua, VBScript, Lisp, Transact-SQL, Julia /

Sign In or Register to comment.