- 论坛徽章:
- 33
|
好像没有什么好方法可以手工限制。
32位的系统里面,最大可以打开2GB的文件。某些发行版里面的vi也有限制:- vi places the following limits on files being edited.
- Maximum Line Length
- LINE_MAX characters (defined in <limits.h>), including 2-3 bytes for
- overhead. Thus, if the value specified for LINE_MAX is 2048, a line
- length up to 2044 characters should cause no problem.
- If you load a file that contain lines longer than the specified limit,
- the lines are truncated to the stated maximum length. Saving the file
- will write the truncated version over the original file, thus
- overwriting the original lines completely.
- Attempting to create lines longer than the allowable maximum for the
- editor produces a line too long error message.
- Maximum File Size
- The maximum file length of 234,239 lines is silently enforced.
复制代码 |
|