File operations with c# RRS feed

  • Question

  • i have a filepath as an object....

    i have to get that file and have to do some operations like:

    Reading a string from a file

    Please help me for the following scenarios by using file stream

    Ex1: public string readstring(int count)

    if i pass an integer value count as a parameter to the function. then it has to read the string based on the count.

    Ex2:public  int write(string data)

    if i pass some data to a file, it has to check in the file and it has to return an int value.


    Could u please help me in the above examples



    Thursday, December 8, 2011 6:31 AM