.log和.txt有什么区别? [英] What is the difference between .log and .txt?

查看:898
本文介绍了.log和.txt有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

file_put_contents( '/Users/jake/Development/testing.log', ob_get_clean(), FILE_APPEND );

file_put_contents( '/Users/jake/Development/testing.txt', ob_get_clean(), FILE_APPEND );

?

我可以用崇高的文字2打开两个文件,但不确定扩展名之间的区别是什么.

I can open both files in sublime text 2, and I'm not sure what the difference between the extensions is.

推荐答案

没有区别.您可以使用任何一个.为了方便起见并显示目的日志文件,请使用.log扩展名.

No there is no difference. You can use either. For convention and to show the purpose log files use .log extension.

是的,通常您可以使用任何文本编辑器打开它们.

and yes you can usually open them with any text editor.

这篇关于.log和.txt有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆