• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • ChainLink
  • Bugs

cannot open any file with fopen

Status: Beta
Brought to you by: jmagland
  • Summary
  • Files
  • Reviews
  • Support
  • Bugs
  • News
  • Donate
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#2 cannot open any file with fopen

open
nobody
None
5
2007-03-28
2007-02-05
stdimitriadis
No

i tried to use i/o functions but i couldn't do that
i couldn't open any exist file on my pc..
do you still work on that?

Discussion

  • Jeremy Magland

    Jeremy Magland - 2007-02-05

    Logged In: YES
    user_id=1686109
    Originator: NO

    The following worked fine on my machine (make sure you have the latest version of the software installed).

    (Current directory is %CHAINLINK_DIR%)

    >> fclose(F);
    >> F=fopen('Readme.txt','r');
    >> for j=1:10 str=fgets(F); disp(str); end; fclose(F);

    - Jeremy Magland

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • Jeremy Magland

    Jeremy Magland - 2007-02-05

    Logged In: YES
    user_id=1686109
    Originator: NO

    The following worked fine on my machine (make sure you have the latest version of the software installed).

    (Current directory is %CHAINLINK_DIR%)

    >> fclose(F);
    >> F=fopen('Readme.txt','r');
    >> for j=1:10 str=fgets(F); disp(str); end; fclose(F);

    - Jeremy Magland

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • Jeremy Magland

    Jeremy Magland - 2007-02-05
    • status: open --> closed
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • Jeremy Magland

    Jeremy Magland - 2007-02-05
    • status: closed --> pending
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • Jeremy Magland

    Jeremy Magland - 2007-02-05
    • status: pending --> closed
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • stdimitriadis

    stdimitriadis - 2007-03-28
    • status: closed --> open
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • stdimitriadis

    stdimitriadis - 2007-03-28

    Logged In: YES
    user_id=1685839
    Originator: YES

    thanks for your information
    it works fine with that code...
    you do a very good work

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • Jeremy Magland

    Jeremy Magland - 2007-03-28

    Logged In: YES
    user_id=1686109
    Originator: NO

    Could you specify exactly the commands you are using. Are you trying to open a file in binary mode? If so, you must use fopen(fname,'rb'), just like in C.

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise

Cerberus Logo