File.exists在C?

编程入门 行业动态 更新时间:2024-10-26 22:30:25
本文介绍了File.exists在C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是VB程序员,并且想知道,有没有办法检查并查看文件是否存在于直接C中? 在VB中代码为:

Hi, I''m a VB programmer, and was wondering, is there a way to check and see if a file exists in straight C? In VB the code is:

展开 | 选择 | Wrap | 行号 推荐答案

我在网上找到了这个: Hi, I found this online: 展开 | 选择 | Wrap | 行号

好吧,如果你想一想它,他们做同样的事情。 0表示失败,任何其他数字代表循环中的pass / true条件,因此您实际上只是更改要返回的数据类型。我无法想象一个特定的原因,一个人在Linux中会比另一个更好。 Well, if you think about it, they do the same thing. 0 stands for a fail and any other number stands for a pass/true condition in a loop, so you''re really just changing the datatype you''re returning. I can''t think of a specific reason one would work better than the other in Linux.

好​​吧,如果你考虑一下,他们做同样的事情。 0表示失败,任何其他数字代表循环中的pass / true条件,因此您实际上只是更改要返回的数据类型。我不能想到一个特定的原因,一个人在Linux中比另一个更好。 Well, if you think about it, they do the same thing. 0 stands for a fail and any other number stands for a pass/true condition in a loop, so you''re really just changing the datatype you''re returning. I can''t think of a specific reason one would work better than the other in Linux.

我将=更改为==,这也是正确的吗? 谢谢, Sitko。

I changed the "="s to "=="s, is that correct as well? Thanks, Sitko.

更多推荐

File.exists在C?

本文发布于:2023-06-08 14:30:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/583097.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:File   exists

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!